Home page logo

bugtraq logo Bugtraq mailing list archives

Re: - PHPGraphy <= 0.9.11 "editwelcome" unauthorized access / cross site scripting -
From: JiM / aEGIS <jim () aegis-corp org>
Date: Tue, 18 Apr 2006 12:09:58 +0100

Hi list,

To rgod: it would have been *very* nice to contact us before posting
this here...

The problem has been confirmed from release 0.9.9 up to 0.9.12-rc1, the
final 0.9.12 (which came out yesterday night) does fix the problem (+
another one of the same type introcuced in the 0.9.12 branch which was
found while auditing the code after the initial security hole had been

All phpGraphy users are *HIGHLY* encouraged to upgrade to the latest
stable release -> 0.9.12

All apologies for this, we do take security very seriously and try our
best to keep phpGraphy as secure as possible.

Best regards,
JiM / phpGraphy DevTeam - http://phpgraphy.sourceforge.net/

rgod () autistici org wrote:
- PHPGraphy <= 0.9.11 "editwelcome" unauthorized access / cross site scripting -

software site: http://phpgraphy.sourceforge.net/
description: "Full featured photo gallery PHP script - Light, fast and easy to

vulnerable code index.php near line 503-10:

if ($updwelcome && isset($welcomedata) && check_welcome($dir)) {
if (strlen($welcomedata) < 10000) {

   echo "<html><script 
   } else echo "Sorry more data (10k) than allowed, protection aborting the operation<br />";

poc, a remote user can go to this url:


to have unauthorized access to some edit functionalities and to insert html/
/javascript code or simply deface the main page

temporary patch -> replace this line:

if ($updwelcome && isset($welcomedata) && check_welcome($dir)) {


if ($admin && $updwelcome && isset($welcomedata) && check_welcome($dir)) {


site: http://retrogod.altervista.org
mail: rgod at autistici.org
original advisory: http://retrogod.altervista.org/phpgraphy_0911_adv.html

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]