Pasar al contenido principal

2013-012: Multiple Full Path Disclosure Vulnerabilities in TinyWebGallery <= v1.8.9

2013-012: Multiple Full Path Disclosure Vulnerabilities in TinyWebGallery <= v1.8.9

Original release date: March 19th, 2013
Last revised:
April 6th, 2013
Discovered by: Manuel García Cardenas
Severity:
5/10 (CVSS Base Score)
CVE-ID:
CVE-2013-2631

BACKGROUND

TinyWebGallery (TWG) is a photo album / gallery released under a modified Open Source license GPL. It is a server based gallery script for images which uses Ajax, PHP, XML and the graphic library Gdlib / ImageMagick.

DESCRIPTION

This vulnerability could allow a malicious user to view the internal path information of the host due to some files were missing the check the inclusion of libraries.

The error is generated through the parameters "twg_browserx" and "twg_browsery" in the page image.php.

VIDEO DEMO

PROOF OF CONCEPT

The attacker can get the full path of the installation of TinyWebGallery browsing to any of this urls:

http://vulnerablesite.com/tw/image.php?fontscale=1&twg_browserx[]=1706&twg_browsery=890&twg_xmlhttp=r

http://vulnerablesite.com/tw/image.php?fontscale=1&twg_browserx=1706&twg_browsery[]=890&twg_xmlhttp=r


The information obtained contains the full path to the files:

Fatal error: Unsupported operand types in /var/www/tw/inc/ajaxserver.inc.php on line 157

BUSINESS IMPACT

Full path disclosure vulnerabilities enables an attacker to know the path to the web root. This information can be used in order to launch further attacks.

SYSTEMS AFFECTED

TinyWebGallery <=1.8.9

SOLUTION

Update to version 1.9

REVISION HISTORY

March 19, 2013: Initial release.
April 6, 2013: Final release.

DISCLOSURE TIMELINE

  • March 19, 2013: Vulnerability acquired by Internet Security Auditors (www.isecauditors.com).
  • March 21, 2013: Send to Vendor.
  • March 21, 2013: New version that includes patched code.
  • April 6, 2013: Sent to lists.

LEGAL NOTICES

The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise. Internet Security Auditors accepts no responsibility for any damage caused by the use or misuse of this information.

ABOUT

Internet Security Auditors is a Spain and Colombia based company leader in web application testing, network security, penetration testing, security compliance implementation and assessing. Our clients include some of the largest companies in areas such as finance, telecommunications, insurance, ITC, etc. We are vendor independent provider with a deep expertise since 2001. Our efforts in R&D include vulnerability research, open security project collaboration and whitepapers, presentations and security events participation and promotion. For further information regarding our security services, contact us.