CVE-2022-34002 Personnel Data Systems (PDS) Vista 7 - Local File Inclusion
The 'document' parameter of PDS Vista 7's display.aspx page is vulnerable to local file inclusion, allowing a low-privileged authenticated attacker to leak configuration files and source code of the web application.
machevalia.blog
Published on machevalia.blog
Vulnerability Disclosure
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
Likely the application takes a file path from the 'document' parameter and includes it without properly restricting the path to an allowed directory.
Impact
A low-privileged authenticated attacker could read configuration files and source code within the web application's root or sub-directories, but not system-level or above-root files.
What the attacker needed
Low-privileged authenticated account; web proxy tool like Burp Suite; unpatched PDS Vista 7
The fix
The vulnerability was fixed by applying the patch '[redacted] – External Applicants Security Hotfix – XA Clients Only'.
How it was found
- Proxy a browser through Burp Suite or another web proxy tool.
- Log into the system that implements PDS Vista 7 before the patch is applied.
- Navigate to the /application/documents/display.aspx?document= page.
- Add the value '/web.config' to the document parameter and request the page again.
- In Burp Suite, find the request/response pair for that request.
- In the response body, search for the string 'padDiv' to see the unencrypted contents of the requested file.
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.
A local file inclusion bug lets an attacker make the web server show files that are stored on the same machine, such as configuration files or source code. Here, a logged-in user with low privileges could change a parameter in a URL to read files inside the web application's folders, but not files outside those folders.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.