Secunia CSI7
Advisories
Research
Forums
Create Profile
Our Commitment
Database
Search
Advisories by Product
Advisories by Vendor
Terminology
Report Vulnerability
Insecure Library Loading
Moderately critical

tinyguestbook Script Insertion and SQL Injection Vulnerabilities

-

Release Date:  2012-01-04    Last Update:  2012-10-01    Views:  1,273

Secunia Advisory SA47419

Where:

From remote

Impact:

Cross Site Scripting, Manipulation of data

Solution Status:

Unpatched

Software:

CVE Reference(s):

Description


Multiple vulnerabilities have been discovered in tinyguestbook, which can be exploited by malicious people to conduct script insertion and SQL injection attacks.

1) Input passed via the "msg" parameter to sign.php when signing the guestbook is not properly sanitised before being used. This can be exploited to insert arbitrary HTML and script code, which will be executed in a user's browser session in context of an affected site when the malicious data is being viewed.

2) Input passed via the "name" and "msg" POST parameters to sign.php (when "post" is set to "submit" and "code" is set correctly) is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Successful exploitation of this vulnerability requires that "magic_quotes_gpc" is disabled.


Solution:
Edit the source code to ensure that input is properly sanitised.

Provided and/or discovered by:
1) G13
2) Henri Salo in a bug report

Original Advisory:
tinyguestbook:
http://code.google.com/p/tinyguestbook/issues/detail?id=1
http://code.google.com/p/tinyguestbook/issues/detail?id=3

G13:
http://seclists.org/bugtraq/2012/Jan/8

Deep Links:
Links available to Secunia VIM customers

Do you have additional information related to this advisory?

Please provide information about patches, mitigating factors, new versions, exploits, faulty patches, links, and other relevant data by posting comments to this Advisory. You can also send this information to vuln@secunia.com

Subject: tinyguestbook Script Insertion and SQL Injection Vulnerabilities

No posts yet

-

You must be logged in to post a comment.



 Products Solutions Customers Partner Resources Company
 
 Corporate
Vulnerability Intelligence Manager (VIM)
Corporate Software Inspector (CSI)
Consumer
Personal Software Inspector (PSI)
Online Software Inspector (OSI)
 Industry
Compliance
Technology
Integration
 Customers
Testimonials
 VARS
MSSP
Technology Partners
References
 Factsheets
Reports
Webinars
Events
 About us
Careers
Memberships
Newsroom


 
© 2002-2014 Secunia ApS - Rued Langgaards Vej 8, 4th floor, DK-2300 Copenhagen, Denmark - +45 7020 5144
Terms & Conditions and Copyright - Privacy - Report Vulnerability