Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | phpBB Notes Mod SQL Injection Vulnerability |
|---|---|
| Date: | Wed, 27 Apr 2005 18:44:35 -0500 |
########################################################## # GulfTech Security Research April 27th, 2005 ########################################################## # Vendor : Oxpus # URL : http://www.oxpus.de/ # Version : All Versions # Risk : SQL Injection Vulnerability ##########################################################
Description: oxpus.de author many popular modules and hacks for the amazingly popular phpBB software. One of these modules allows users to keep their own personal memo pad of sorts in the usercp. This particular mod comes standard with packages like orion_phpbb and others. This "notes" module is vulnerable to a serious SQL Injection vulnerability that will allow for an attacker to pull sensitive information from the underlying database, and possibly compromise the integrity of the affected phpBB installation.
SQL Injection: There is a high risk SQL Injection issue in the phpBB notes module that allows for malicious users to pull sensitive data from the underlying database and possibly compromise the affected phpBB installation. Let's have a look at part of the vulnerable code.
As we can see from this code $post_id is not encapsulated in single quotes. This is appropriate as the expected data type is an integer, but the incoming data is never checked for arbitrary content. The below example can be used to pull a username from the database, but could just as easily be something less "benign".
http://localhost/posting_notes.php?mode=editpost&p=-99%20UNION%20SELECT%200,0,username,0,0,0,0,0,0%20FROM%20orionphpbb_users%20WHERE%20user_id=2/*
It should also be noted that other functions in the posting_notes.php file are vulnerable as well (i.e.: the delete function). On a side note I would like to send a reminder to ALL webmasters. Whenever you download a third party module from a website there is usually no guarantee or assurance that the code is safe. It is up to you to either have a professional view the code for you, or view it yourself at least before putting it in a place where the general public has access to it.
Solution: I found this issue in Orion PhpBB, and contacted Sonny from cback.de. He was very helpful and prompt in his response, and has created a mod to help prevent these types of issues. The CrackerTracker mod is found here.
http://community.cback.de/printview.php?t=1724
I believe the new versions of orion phpBB have the fixed files, and if not oxpus.de should have a fix out soon as Sonny has contacted them :)
Related Info: The original advisory can be found at the following location http://www.gulftech.org/?node=research&article_id=00070-04272005
Credits: James Bercegay of the GulfTech Security Research Team
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Vulnerability kali's tagboard, security curmudgeon |
|---|---|
| Next by Date: | Re: tcpdump(/ethereal)[]: (RSVP) rsvp_print() infinite loop DOS., Romain Francoise |
| Previous by Thread: | Security contact at sourceforge?, Joxean Koret |
| Next by Thread: | Netflix Site may assist Phishing, Sara Togian |
| Indexes: | [Date] [Thread] [Top] [All Lists] |