CVE-2014-3704 — Debian Linux
CVE-2014-3704 is a SQL Injection vulnerability in debian debian linux. 18 public exploit references exist, so weaponization risk is real. A fix is available — see the affected versions and patch details below.
The expandArguments function in the database abstraction API in Drupal core 7.x before 7.32 does not properly construct prepared statements, which allows remote attackers to conduct…
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Description
The expandArguments function in the database abstraction API in Drupal core 7.x before 7.32 does not properly construct prepared statements, which allows remote attackers to conduct SQL injection attacks via an array containing crafted keys.
Affected Products
debian linuxdebiandrupaldrupalResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Drupal 7.0 < 7.31 - 'Drupalgeddon' SQL Injection (PoC) (Reset Password) (1)
by stopstene · Oct 16, 2014
Drupal 7.0 < 7.31 - 'Drupalgeddon' SQL Injection (Admin Session)
by Stefan Horst · Nov 3, 2014
Drupal 7.0 < 7.31 - 'Drupalgeddon' SQL Injection (PoC) (Reset Password) (2)
by Dustin Dörr · Oct 17, 2014
Drupal 7.0 < 7.31 - 'Drupalgeddon' SQL Injection (Add Admin User)
by Claudio Viviani · Oct 17, 2014
Drupal 7.0 < 7.31 - 'Drupalgeddon' SQL Injection (Remote Code Execution)
by Stefan Horst · Nov 3, 2014
Detection & mitigation playbook
Vendor / applianceDetect
Inventory every debian debian linux deployment and check each version against the affected-products list above.
Fix
Apply the debian debian linux security patch or hotfix for CVE-2014-3704 on the affected version, following the vendor advisory for your exact build.
Workarounds
Until you can upgrade, make sure every query built from user input uses parameterised statements or a prepared-statement API rather than string concatenation, and reduce the database account's privileges so an injected query cannot read or alter data beyond what the feature needs. Alongside that, restrict the management interface to trusted networks and apply the vendor's recommended configuration mitigations.
How to detect CVE-2014-3704
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2014-3704 -u https://target- Template
- Drupal SQL Injection
- Severity
- high
- Impact
- Successful exploitation of this vulnerability can lead to unauthorized access, data leakage, and potential compromise of the Drupal application and its underlying database.
- Remediation
- Upgrade to Drupal core 7.32 or later.
Template by ProjectDiscovery nuclei-templates (princechaddha), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2014-3704 being exploited in your environment?
Detect and block the exploit chain at execution, on systems you cannot patch yet.