Veertu Anka Build registry log files directory traversal vulnerability
A directory traversal vulnerability in the log download functionality of Veertu Anka Build 1.42.0 allows an unauthenticated attacker to read arbitrary log files on the system. By sending a crafted HTTP request with a manipulated 'service' parameter, an attacker can access sensitive information.
A directory traversal vulnerability exists in the log files download functionality of Veertu Anka Build 1.42.0. A specially crafted HTTP request can lead to a disclosure of sensitive information.
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
Root cause
The 'service' parameter is appended to the log directory path without validating for directory traversal sequences, allowing an attacker to specify arbitrary paths.
Impact
An unauthenticated attacker could read arbitrary log files on the system, potentially disclosing sensitive information.
What the attacker needed
Network access to the Anka Build Controller or Registry
The fix
The vulnerability was fixed in version 1.43.0 of Anka Build Cloud.
How it was found
- Send an HTTP GET request to the controller URI /api/v1/registry/log or the Registry URI /log.
- Include a 'service' parameter with directory traversal sequences (e.g., '../') to target a file outside the log directory.
- The server appends '.log' to the path and returns the contents of the targeted 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 report has not been written yet. The Original tab links to the source.
This bug lets someone trick the server into reading files outside the intended log folder. By putting special characters like '../' in a web request, they can make the server show files it shouldn't, like system logs. No login is needed, so anyone who can reach the server can exploit it.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.