Multiple Vulnerabilities in ReOS

Advisory ID:HTB22806
Product:ReOS
Vendor:IT ELAZOS S.L.
Vulnerable Versions:2.0.5 and probably prior
Tested Version:2.0.5
Advisory Publication:January 20, 2011 [without technical details]
Vendor Notification:January 20, 2011
Public Disclosure:February 3, 2011
Vulnerability Type:SQL Injection [CWE-89]
PHP File Inclusion [CWE-98]
Risk Level:High
CVSSv2 Base Scores:7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P)
7.6 (AV:N/AC:H/Au:N/C:C/I:C/A:C)
Discovered and Provided:High-Tech Bridge Security Research Lab
 

Advisory Details:

High-Tech Bridge SA Security Research Lab has discovered multiple vulnerabilities in ReOS which could be exploited to perform SQL injection attacks and compromise vulnerable system.

1) SQL injection vulnerabilities in ReOS
1.1 The vulnerability exists due to input sanitation errors in the "form1_txt_email1" and "form1_ref_immo" parameters in index.php. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary SQL commands in application`s database. Successful exploitation may allow an attacker to read, modify, add or delete arbitrary data in the database.
Exploitation examples:
tp://[host]/index.php?form1_txt_email1=123'SQL_CODE_HERE&form1_data=pg%3Drem ember%2Cnm%3DLost+your +Password%3F&form1_phpform_sent=1
http://[host]/index.php?form1_ref_immo=1' SQL_CODE_HERE&form1_order_by=precio&form1_tp_propiedad=&for m1_in_order=ASC&form1_tp_servicio=&form1_txt_poblacion=&form1_txt_zona=&form 1_precio_min=&form1_prec io_max=&form1_data=pg%3Dverimmo%2Cnm%3DSearch+Results%2Cshow%3D0%2Cfrom%3D0& form1_phpform_sent=1

1.2 The vulnerability exists due to input sanitation errors in the "form1_tp_state" and "form1_keyword" parameters in members.php. A remote attacker can send a specially crafted HTTP request to the vulnerable script and execute arbitrary SQL commands in application`s database. Successful exploitation may allow an attacker to read, modify, add or delete arbitrary data in the database.
Exploitation examples:
http://[host]/members.php?form1_tp_state=%27SQL_CODE_HERE&form1_tp_servicio= &form1_tp_propiedad=&for m1_order_by=precio&form1_data=pg%3Dmy_immos%2Cnm%3DMy+Properties%2Cfrom%3D0& form1_phpform_sent=1
http://[host]/members.php?form1_keyword=%27SQL_CODE_HE RE&form1_data=pg%3Dverpobs%2Cfrom%3D0%2Cnm%3DA ctive+Cities%2Cid_account%3D3&form1_phpform_sent=1


2) Local file inclusion vulnerability in ReOS
The vulnerability exists due to input sanitation error in the "lang" parameter in jobs.php. A remote attacker can include and execute arbitrary files on the target system using directory traversal sequences with NULL byte.
Exploitation example:
http://[host]/jobs.php?lang=/../../../../../../../../etc/passwd%00

How to Detect SQL Injection Vulnerabilities
Free Website Security Test
  • Non-intrusive GDPR Test
  • Non-intrusive PCI DSS Test
Try Free Test
ImmuniWeb® On-Demand
  • Complete GDPR Audit
  • Complete PCI DSS Audit
  • Remediation Guidelines
  • DevSecOps Integration
Learn More

Solution:
Currently we are not aware of any vendor-supplied patches or other solutions. The vendor was contacted in accordance to our Vendor Notification Policy but we didn't get any answer or feedback.


References:
[1] High-Tech Bridge Advisory HTB22806 - https://www.immuniweb.com/advisory/HTB22806 - Multiple Vulnerabilities in ReOS
[2] ReOS - reos.elazos.com - ReOS is an open source web based real estate listing management application.
[3] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.
User Comments
Add Comment


Have additional information to submit?
Please feel free to send us any additional information related to this Advisory, such as vulnerable versions, additional exploitation details and conditions, patches and other relevant details.
Quick Start
Products
Free Trial
Newsletter