Secunia Logo
 
Mambo SQL Injection Vulnerabilities
Secunia Advisory: SA9796
Release Date: 2003-09-19
Popularity: 10,104 views

Critical:
Highly critical
Impact: Manipulation of data
Exposure of system information
Exposure of sensitive information
Where: From remote
Solution Status: Vendor Patch

Software:Mambo 4.x

Subscribe: Instant alerts on relevant vulnerabilities


Description:
Multiple vulnerabilities have been identified in Mambo allowing malicious users to manipulate SQL queries and send SPAM anonymously.

1) Mambo fails to verify the "bid" parameter properly in "banners.php" allowing malicious people to conduct SQL injection. This can be exploited to write output from queries to a file if the attacker knows the path to the webroot and the webroot is writeable. It is then possible to retrieve the data via HTTP.

Example:
/mambo/banners.php?op=click&bid=100 UNION select password from mos_users where 1=1 into outfile '/path/to/file'

2) The "id" parameter isn't properly verified in "emailfriend/emailarticle.php" and "emailfriend/emailfaq.php" allowing malicious people to inject SQL code. An example has been provided, which emails the MD5 hashed password to an email address.

Example:
mambo/emailfriend/emailarticle.php?submit=submit&email=[email_adr]&youremail=[email adr]&id=100 UNION select username,email,password from mos_users where id=1

3) It is possible to send email anonymously using the "Sendmail" function in "contact.php". This could be exploited by spammers to SPAM anonymously.

Example:
mambo/contact.php?op=Sendmail&text=[message]&from=[I_don't_SPAM]&name=[Name]&email_to=[SPAM_me]&sitename=[SPAM_heaven.tld]

Issues 1 and 2 only affect Mambo on systems with MySQL 4.

Solution:
Version 4.0.14 is not vulnerable to the SPAM issue.
http://prdownloads.sourceforge.net/mambo/MamboV4.0.14.tar.gz

The only current workaround to prevent the SQL injection is to use MySQL 3.

Provided and/or discovered by:
lifofifo, hackingzone.org

Original Advisory:
http://www.hackingzone.org/secviewarticle.php?id=11


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

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. Sun Java JDK / JRE Multiple Vulnerabilities // 221 views
2. Adobe Flash Player Multiple Security Issues and Vulnerabilities // 56 views
3. PHP ZipArchive::extractTo() Directory Traversal Vulnerability // 49 views
4. Linux Kernel PARISC "parisc_show_stack()" Denial of Service // 46 views
5. Nagios Unspecified CGI Vulnerability // 39 views
6. Drupal Storm Module SQL Injection Vulnerabilities // 37 views
7. IBM HMC HTTP TRACE Response Cross-Site Scripting Weakness // 36 views
8. Multi SEO phpBB "pfad" File Inclusion Vulnerability // 35 views
9. phpBB reveals user IPs // 34 views
10. RSyslog "AllowedSender" Security Bypass Vulnerability // 31 views