Skip to content
Path traversal Write-up Intermediate

Oracle Retail Xstore Suite: Pre-authenticated Path Traversal

The Oracle Retail Xstore POS application exposes an unauthenticated endpoint that loads images based on a user-supplied parameter, which is not properly sanitised, allowing path traversal. An attacker could list directories, read local files, and coerce SMB authentication to capture NTLMv2 hashes.

Louis Wolfers Follow

Published on synacktiv.com

29/07/2024 - Téléchargement

Louis Wolfers (@TG91aXMK), Quentin Roland (@croco_byte), on synacktiv.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The application fails to sanitise user input in the imageId parameter, allowing directory traversal sequences and UNC paths to be used to access arbitrary files and network resources.

Impact

An unauthenticated attacker could read sensitive files, list directories, and capture NTLMv2 hashes for offline cracking, potentially leading to credential theft; however, SMB coercion may be blocked by security policies that prevent unauthenticated guest access.

What the attacker needed

Network access to the POS service; no authentication required

How it was found

  1. Send a request to the /xstoremgwt/cheetahImages endpoint with a crafted imageId parameter containing directory traversal sequences.
  2. Observe that the server returns the contents of a file outside the intended directory, such as win.ini.
  3. Alternatively, provide a UNC path in the imageId parameter to list directories on the server or to trigger an SMB connection to an attacker-controlled server.
  4. Capture NTLMv2 authentication data on the attacker's SMB server.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This report describes a flaw in a point-of-sale system where a part of the application that fetches images can be tricked into reading files from anywhere on the server, not just the intended image folder. Because this happens before any login, anyone who can reach the service can exploit it to view sensitive files or capture login credentials. The issue is similar to a misconfigured file browser that lets you type a path to any file on the computer.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from Oracle

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.