Lucene search
+L

Open Realty 2.x / 3.x Cross Site Scripting

🗓️ 26 Jul 2010 00:00:00Reported by K053Type 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 19 Views

Cross Site Scripting in Open Realty 2.x / 3.

Code
`# Title: persistence XSS flaw in Open Realty 2.x and 3.x  
# Author: K053 <K053.dev0te3 at gmail>  
# Date: 2010-7-24  
# Hompage: http://open-realty.org  
# Download Link: http://www.open-realty.org/download.html  
# Version: 3.x & 2.x < seems all version >  
======================================================================================================  
Detail :  
========  
  
function save_search(){  
...  
...  
  
// $title contain user supplied serach result name which save in DB without any input validation  
  
if ($num_columns == 0) {  
$sql = "INSERT INTO " . $config['table_prefix'] . "usersavedsearches  
(userdb_id, usersavedsearches_title, usersavedsearches_query_string,  
usersavedsearches_last_viewed,usersavedsearches_new_listings,usersavedsearches_notify)  
VALUES ($userID, $title, $query,now(),0, $notify)";  
...  
...  
}  
function view_saved_searches()  
{  
...   
...  
else {   
while (!$recordSet->EOF) {  
$title = $misc->make_db_unsafe($recordSet->fields['usersavedsearches_title']);  
if ($title == '') {  
$title = $lang['saved_search'];  
}  
$display .= '<a href="index.php?action=searchresults&' . $misc->make_db_unsafe  
($recordSet->fields['usersavedsearches_query_string']) . '">' . $title . '</a>   
<div class="note"><a href="index.php?action=delete_search&  
searchID=' . $misc->make_db_unsafe($recordSet->fields['usersavedsearches_id']) . '"  
onclick="return confirmDelete()">' . $lang['delete_search'] . '</a></div><br /><br />';  
  
$recordSet->MoveNext();  
}  
}  
}else {  
$display = $status;  
}  
  
// and no output validation, $display passed immediately  
  
return $display;  
======================================================================================================  
POC :  
=====  
load http://address/index.php?action=save_search < note some parameter set by passed url >  
in textbox enter <script>alert(0)</scritp>.  
  
load http://address/index.php?action=view_saved_searches to view result  
______________________________________________________________________________________________________  
lackout Frenzy [http://b0f.ir]  
  
`

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

26 Jul 2010 00:00Current
7.4High risk
Vulners AI Score7.4
19