Lucene search
K

maranphp-xss.txt

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

Maran PHP Blog XSS (Pasive) vulnerability in ID variable. Attacker can execute JavaScript code and get admin cookie

Code
`----------------------------------------------------------------  
  
Script : Maran PHP Blog  
  
Type : XSS (Pasive)  
  
Method : GET  
  
Alert : Medium  
  
----------------------------------------------------------------  
  
Discovered by : Khashayar Fereidani a.k.a. Dr.Crash  
  
My Offical Website : HTTP://FEREIDANI.IR  
  
Khashayar Fereidani Email : irancrash [ a t ] gmail [ d o t] com  
  
----------------------------------------------------------------  
  
Khashayar Fereidani Offical Website : HTTP://FEREIDANI.IR  
  
----------------------------------------------------------------  
  
Script Download : http://www.maran.pamil-visions.com/download2.php?dir=maranphp&file=maranblog.zip  
  
----------------------------------------------------------------  
  
This Is One Xss Vulnerability in ID Variable .  
Attacker Can Execute JavaScript Code And Get Admin Cookie And Send new article with admin cookie .....  
  
Xss Address : http://Example/comments.php?id=%3E%3C%3E%27%3Cscript%3Ealert(document.cookie)%3C/script%3E  
  
  
----------------------------------------------------------------  
  
Solution : Edit Source Code And Filter id Variable With htmlspecialchars() function in comments.php .......  
  
line 32 : <input type='hidden' name='id' value='<?echo $_GET['id'];?>'><br>  
  
Change It To : <input type='hidden' name='id' value='<?echo htmlspecialchars($_GET['id']);?>'><br>  
  
----------------------------------------------------------------  
  
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