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.
Published on synacktiv.com
29/07/2024 - Téléchargement
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
- Send a request to the /xstoremgwt/cheetahImages endpoint with a crafted imageId parameter containing directory traversal sequences.
- Observe that the server returns the contents of a file outside the intended directory, such as win.ini.
- 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.
- 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.