Blind SQL injection via unescaped debug comments
Published Apr 25, 2023 · Updated Feb 3, 2025
Blind SQL injection in ARC2 2011-12-01 and earlier allows remote attackers to manipulate MySQL queries through a crafted SPARQL WHERE clause. getTriplePatternSQL in ARC2_StoreSelectQueryHandler.php inserts subject, predicate, and object values into always-enabled SQL debug comments without neutralizing comment terminators. A reachable SPARQL+ endpoint accepting attacker-controlled queries is required; the demonstrated time-delay and Boolean payloads provide a blind database oracle.
Summary
What happened
Blind SQL injection in ARC2 2011-12-01 and earlier allows remote attackers to manipulate MySQL queries through a crafted SPARQL WHERE clause. getTriplePatternSQL in ARC2_StoreSelectQueryHandler.php inserts subject, predicate, and object values into always-enabled SQL debug comments without neutralizing comment terminators. A reachable SPARQL+ endpoint accepting attacker-controlled queries is required; the demonstrated time-delay and Boolean payloads provide a blind database oracle.
The record
- CVE
- CVE-2012-5872
- Published
- Apr 25, 2023
- Updated
- Feb 3, 2025
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-89, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 25, 2023CVE publishedPublication date reported by the CVE source.
- Feb 3, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- ARC2 SPARQL endpoint blind SQL injection proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo