Multiple path traversal vulnerabilities in the Beryl AX GL-MT300
The router's /download endpoint fails to validate the path parameter, allowing arbitrary file reads. Additionally, the mobile app follows symbolic links on Samba shares, enabling reading files outside the share when a crafted USB device is used.
Published on medium.com
There’s no validation of the path parameter used by the /download endpoint of the router, this enable arbitrary file reads.
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 /download endpoint does not sanitise the path parameter, and the mobile app follows symbolic links without restricting them to the shared directory.
Impact
An attacker with access to the router's web interface or the mobile app could read arbitrary files, potentially exposing sensitive system information.
What the attacker needed
Access to router web interface; valid admin token; physical USB device; mobile app installed
How it was found
- Send a POST request to /download with a path parameter pointing to /etc/passwd.
- Observe the response containing the contents of /etc/passwd.
- Create a directory on an ext4 USB device and place a symlink to /etc/passwd inside it.
- Plug the USB device into the router and create a Samba share for that directory.
- Use the mobile app to download the symlink file to the Android device.
- Use adb shell to read the downloaded file, which reveals the contents of /etc/passwd.
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 path traversal bug lets someone trick a program into opening files it should not, by using special characters like '../' to climb out of the intended folder. Here, the router's download feature and the mobile app's file handling both allowed reading sensitive system files, which could expose password hashes or configuration data.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.