Secunia Logo  
 
Drupal SQL Injection and Arbitrary File Execution Vulnerabilities
Secunia Advisory: SA20140
Release Date: 2006-05-25
Last Update: 2006-06-08
Popularity: 9,251 views

Critical:
Moderately critical
Impact: Manipulation of data
System access
Where: From remote
Solution Status: Vendor Patch

Software:Drupal 4.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-2742
CVE-2006-2743
CVE-2006-2831
CVE-2006-2832


Description:
Three vulnerabilities have been reported in Drupal, which can be exploited by malicious people to conduct cross-site scripting and SQL injection attacks, and by malicious users to potentially compromise a vulnerable system.

1) Input passed to unspecified parameters is not properly sanitised before being used in an SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

The vulnerability has been reported in version 4.6.6 and prior, and in version 4.7.0 and prior.

2) Missing access restrictions to the "files" directory in certain configurations can be exploited by users with upload rights and with permissions to modify stories, to upload files with multiple file name extensions and executing them.

Successful exploitation requires that the "mod_mime" module is installed in Apache, and that a " .htaccess" file has not been used to restrict access to the directory.

The vulnerability has been reported in all versions prior to 4.6.8, and in all versions prior to 4.7.2.

3) Input passed to unspecified parameter in the upload.module isn't properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.

The vulnerability has been reported in all versions prior to 4.7.2.

Solution:
Update to version 4.6.8 or 4.7.2, or apply patches.
http://drupal.org/project

Patch for Drupal 4.6.7:
http://drupal.org/files/sa-2006-007/4.6.7.patch.

Patch for Drupal 4.7.1:
http://drupal.org/files/sa-2006-007/4.7.1.patch.

Note: Vulnerability #2 was not correctly fixed in version 4.6.7 and 4.7.1.

Provided and/or discovered by:
1) Ayman Hourieh
2) Lourens Veen
3) Karoly Negyesi

Additional information by:
rgod

Changelog:
2006-05-26: Updated "Description" and credit sections.
2006-06-02: Vendor issues new fixes. Updated advisory.
2006-06-07: Added CVE references.
2006-06-08: Added CVE references.

Original Advisory:
http://drupal.org/node/65357
http://drupal.org/node/65409
http://drupal.org/node/66763


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Today
New advisories: 8
New vulnerabilities: 40
Updated advisories: 8

Highly // 22 views
Debian update for icedove
Moderately // 34 views
Fedora update for openssl
Moderately // 39 views
QuoteBook Multiple Vulnerabilities
Less // 35 views
Fedora update for samba
Moderately // 37 views
Ubuntu update for openssl

7th Jan, 2009
New advisories: 31
New vulnerabilities: 90
Updated advisories: 37

Moderately // 353 views
Red Hat update for xterm

Solutions | More...  


Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. OpenSSL DSA / ECDSA "EVP_VerifyFinal()" Spoofing Vulnerability // 84 views
2. Joomla! "X_CMS_LIBRARY_PATH" Directory Traversal Vulnerability // 79 views
3. SAP GUI TabOne ActiveX Control Caption List Buffer Overflow // 46 views
4. HP OpenView Network Node Manager Multiple Vulnerabilities // 37 views
5. Symantec Mail Security for SMTP Response Handling Denial of Service // 33 views
6. Red Hat update for openssl // 31 views
7. vBulletin Personal Sticky Threads Add-on Security Bypass Vulnerability // 21 views
8. PollHelper "poll.inc" Information Disclosure Security Issue // 21 views
9. BlogHelper "common_db.inc" Information Disclosure Security Issue // 20 views
10. Red Hat update for dbus // 19 views