Lucene search
+L

smfsb-xss.txt

🗓️ 11 Feb 2008 00:00:00Reported by enterth3dragonType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 28 Views

SMF Shoutbox Mod 1.16b-1.14 Vulnerable to Persistent XSS

Code
`Simple Machines Forum "SMF Shoutbox" Mod 1.16b-1.14   
  
Reference: http://custom.simplemachines.org/mods/index.php?mod=412   
  
Bug:Persistent XSS  
  
SMF Shoutbox is a popular shoutbox mod for Simple Machines Forum.The content of a post variable used to hold the user shout is stored in the database and then displayed to the visitors without being properly filtered.So we can insert HTML or Javascript code in the database which is then displayed in the shoutbox (which is usually at the index page of the forum).  
Note:the content of this variable is also stored in an html file (sbox.history.html)residing in the main folder where SMF is installed so it is possible to insert and then execute php code under some server configurations.   
  
Vulnerable versions: 1.16b down to 1.14  
  
Search Engines query: "powered by smf 1.1" "SMF Shoutbox"   
  
Vuln code  
  
-In sboxDB.php  
  
function missinghtmlentities() fails to sanitize   
input passed to the shoutbox form  
  
  
Exploit  
  
All we have to do is pass to the shoutbox form a string starting with '&#' and ending with ';'  
Most sites configuration doesnt enable guest visitors to post comments so you should create an account and login in order to exploit.SMF Shoutbox is usually in the index page of the forum so you could easily exploit this issue to collect Admins and user cookies,hijack sessions,etc  
  
  
  
Pass this string to the shoutbox   
  
&#<script>alert(String.fromCharCode(88,83,83))</script>;  
  
If successful every visitor of the page should see an alert saying 'XSS'   
  
  
Note:  
  
We can inject php code but the output file (sbox.history.html)has an .html extension so in order for the code to execute the server must be configured to parse .html files for php code which is not the default configuration.  
`

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

11 Feb 2008 00:00Current
7.4High risk
Vulners AI Score7.4
28