by r0t,der4444,cembo,VietMafia

Tuesday, December 13, 2005

Plogger SQL&XSS vuln.

Plogger SQL&XSS vuln.

Vuln. dicovered by : r0t
Date: 13 dec. 2005
vendor:http://www.plogger.org/
affected version:Beta 2 and prior


Product Description:

Plogger is the definitive open-source web photo gallery. Simple to integrate with your site, lightweight, and packed with useful features, Plogger leaves the other image galleries in the dust. Automatic thumbnail generation, cruft free URLs, RSS support, powerful password protected admin area, picture comments, mass downloading and integrated JavaScript slideshow are just a few of the features you'll find in this script. Plogger requires PHP4, MySQL 3.23+ and GD1.0+.



Vuln. Description:

1. SQL inj.
Plogger contains a flaw that allows a remote sql injection attacks.Input passed to the "page" and "id" parameter isn't properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code

2. XSS attack
Plogger contains a flaw that allows a remote cross site scripting attack. This flaw exists because input passed to "level" and "searchterms" parameter isn't properly sanitised before being returned to the user.
This could allow a user to create a specially crafted URL that would execute arbitrary code in a user's browser within the trust relationship between the browser and the server, leading to a loss of integrity.


examples:

SQL
/index.php?sortdir=ASC&level=album&id=[SQL]
/?page=[SQL]

XSS
/index.php?level=%22%3E%3Cscript%3
Ealert('r0t')%3C/script%3E

/index.php?level=search&searchterms=%22%3E%
3Cscript%3Ealert('r0t')%3C/script%3E


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

0 Comments:

Post a Comment

<< Home

 
Copyright (c) 2006 Pridels Sec Crew