Secunia Logo
 
yblog SQL Injection and Cross-Site Scripting
Secunia Advisory: SA30607
Release Date: 2008-06-12
Popularity: 2,477 views

Critical:
Moderately critical
Impact: Cross Site Scripting
Manipulation of data
Exposure of sensitive information
Where: From remote
Solution Status: Unpatched

Software:yblog 0.x

Subscribe: Instant alerts on relevant vulnerabilities


Description:
unohope has discovered some vulnerabilities in yblog, which can be exploited by malicious people to conduct cross-site scripting and SQL injection attacks.

1) Input passed to the "q" parameter in search.php is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Successful exploitation of this vulnerability allows e.g. retrieving usernames and passwords, but requires that "magic_quotes_gpc" is disabled.

2) Input passed to the "n" parameter in user.php is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Successful exploitation of this vulnerability allows e.g. retrieving usernames and passwords, but requires that "register_globals" is enabled and that "magic_quotes_gpc" is disabled.

3) Input passed to the "q" parameter in search.php is not 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.

4) Input passed to the "n" parameter in user.php is not 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.

Successful exploitation of this vulnerability requires that "register_globals" is enabled.

5) Input passed to the "n" parameter in uss.php is not 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.

Successful exploitation of this vulnerability requires that "register_globals" is enabled and that the target user has valid user credentials.

The vulnerabilities are confirmed in version 0.2.2.2. Other versions may also be affected.

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

Provided and/or discovered by:
unohope

Original Advisory:
http://milw0rm.com/exploits/5773


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. VLC Media Player Real Demuxer Integer Overflow Vulnerability // 58 views
2. Basic PHP CMS "id" SQL Injection Vulnerability // 37 views
3. Microsoft Office Communications Server SIP INVITE Denial of Service // 36 views
4. Sun Java JDK / JRE Multiple Vulnerabilities // 33 views
5. Lito Lite CMS "cid" SQL Injection Vulnerability // 32 views
6. Minimal Ablog Multiple Vulnerabilities // 30 views
7. RakhiSoftware Shopping Cart Multiple Vulnerabilities // 29 views
8. Active Newsletter "email" and "password" SQL Injection Vulnerabilities // 29 views
9. Ocean12 FAQ Manager Pro "ID" SQL Injection Vulnerability // 27 views
10. Active eWebquiz "useremail" and "password" SQL Injection Vulnerabilities // 26 views