
CVE-2025-52694 Critical SQL Injection in Advantech IoTSuite/SaaS-Composer
This repository contains Proof-of-Concept (PoC) tools for CVE-2025-52694, a critical unauthenticated SQL Injection vulnerability affecting Advantech IoTSuite and IoT Edge Products.
| Attribute | Details |
|---|---|
| CVE ID | CVE-2025-52694 |
| Vendor | Advantech |
| Product | IoTSuite and IoT Edge Products |
| Severity | Critical |
| Vulnerability Type | SQL Injection (CWE-89) |
| Affected Endpoint | /displays/{filename}.json?org_id= |
The vulnerability exists because the filename parameter in the URL path is unsafely concatenated directly into a PostgreSQL query.
pg_sleep(), an attacker can confirm the vulnerability through time-based analysis.This repository provides two primary methods for testing and verification:
cve-2025-52694-poc.py)A standalone script to perform a time-based SQL injection test.
Execution:
python3 cve-2025-52694-poc.py --url <TARGET_URL> --org 1
--url: The base URL of the target Advantech instance.--org: The Organization ID (defaults to 1). You may need to try different values (1-5) to find a valid organization context.cve-2025-52694.yaml)For automated scanning across multiple targets.
Execution:
nuclei -t cve-2025-52694.yaml -u <TARGET_URL>
clusterbomb attack to iterate through common org_id values.filename parameter is properly sanitized or use parameterized queries to prevent SQL concatenation.This tool is for educational purposes and authorized security testing only. Unauthorized access to computer systems is illegal. The author assumes no liability for any misuse or damage caused by this tool.
Author: Loi Nguyen Thang (HCMUTE Information Security Club).