GHSL-2023-076: Information disclosure in the Sidebar Link Plug-in for Jenkins - CVE-2023-32985
The Sidebar Link plugin for Jenkins did not validate a file path parameter in an HTTP endpoint, allowing authenticated attackers to enumerate arbitrary files on the Jenkins controller filesystem by checking whether files exist.
Originally disclosed on GitHub Security Lab
Sidebar Link Plug-in for Jenkins 2.2.1 and earlier does not restrict a file path parameter in an HTTP endpoint, allowing authenticated attackers to enumerate arbitrary files on the Jenkins controller file system.
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 report has not been written yet. The Original tab links to the source.
How it worked
Impact
This issue may lead to information disclosure.
What the attacker needed
Authenticated attacker
The fix
The issue was fixed in version 2.2.2 of the plugin.
How it was found
- Send a GET request to the checkLinkIcon endpoint with a path containing '..' sequences to test for a non-existent file.
- Observe the error message indicating the file does not exist.
- Send a similar request for a known existing file (e.g., /etc/passwd).
- Observe a different response (HTTP 200 OK) confirming the file exists.
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 report has not been written yet. The Original tab links to the source.
A plugin in Jenkins lets users set a link icon. It had a web address that checked if a file exists, but it didn't stop people from using '..' to look at files outside the intended folder. By trying different paths, an attacker could find out which files exist on the server.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.