Authentication bypass via unescaped password SQL interpolation
Published Feb 11, 2020 · Updated Aug 6, 2024
SQL injection in affected D-Link DSR router firmware allows remote attackers to bypass web authentication with a crafted password. The login.authenticate function and captivePortal.lua interpolate the unescaped Users.Password value into quoted SQL statements, letting injected predicates satisfy the login query. Access to the router's web interface is sufficient; no credentials are required, and successful exploitation grants administrative interface access.
Summary
What happened
SQL injection in affected D-Link DSR router firmware allows remote attackers to bypass web authentication with a crafted password. The login.authenticate function and captivePortal.lua interpolate the unescaped Users.Password value into quoted SQL statements, letting injected predicates satisfy the login query. Access to the router's web interface is sufficient; no credentials are required, and successful exploitation grants administrative interface access.
The record
- CVE
- CVE-2013-5945
- Published
- Feb 11, 2020
- Updated
- Aug 6, 2024
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-89, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 11, 2020CVE publishedPublication date reported by the CVE source.
- Aug 6, 2024Record 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.
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
- D-Link DSR Router Series authentication-bypass SQL injectionproof 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