Skip to content
SQL injection Write-up Intermediate

SA-CORE-2014-005 - Drupal core - SQL injection

A vulnerability in Drupal 7's database abstraction API allows an attacker to send specially crafted requests that result in arbitrary SQL execution. This can lead to privilege escalation, arbitrary PHP execution, or other attacks, and can be exploited by anonymous users.

drupal.org

Published on drupal.org

By Drupal Security Team on 15 Oct 2014 at 16:02 UTC

The author, on drupal.org

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could execute arbitrary SQL, leading to privilege escalation, arbitrary PHP execution, or other attacks; the advisory notes exploits were seen in the wild.

What the attacker needed

Drupal 7.x before 7.32; no authentication needed

The fix

The vulnerability was fixed by upgrading to Drupal 7.32 or applying a patch to the database.inc file.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Drupal is a content management system. Its database layer is supposed to safely handle user input, but a flaw let attackers inject their own database commands. This meant anyone could take over a site without logging in.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.