DrayTek Vigor2960 Web Application Path Traversal (CVE-2026-129450)
Overview
The vulnerability resides in the sub_1E084 routine of /cgi-bin/mainfunction.cgi?action=doWebBackup. Manipulating the 'option' parameter enables directory traversal. The flaw is exploitable over the network without authentication.
Technical Details
The flaw stems from insufficient validation of the 'option' argument in the mainfunction.cgi script. By supplying crafted path components (e.g., '../'), an attacker can cause the underlying file-read operation to traverse outside the intended backup directory and retrieve files from the file system. The vulnerability is present in firmware version 1.5.1.6 of the DrayTek Vigor2960 and can be triggered remotely via HTTP requests.
Impact
An attacker who can reach the vulnerable device can read any readable file, potentially exposing configuration data, credentials, and other sensitive information. This compromises confidentiality of the device and may aid further compromise of the network. All deployments running Vigor2960 firmware 1.5.1.6 are affected.
Recommended Actions
- Upgrade to firmware version 1.5.1.7 or later as provided by DrayTek.
- Restrict network access to the /cgi-bin/mainfunction.cgi endpoint to trusted management networks.
- Monitor web server logs for requests to mainfunction.cgi with the action=doWebBackup parameter.
- Verify that file-system access logs do not show unexpected traversal attempts.
Detection
Review HTTP access logs for calls to /cgi-bin/mainfunction.cgi?action=doWebBackup and look for abnormal 'option' parameters containing '../' sequences. Correlate with authentication events; any such request from unauthenticated sources should be flagged as suspicious. Enable alerting on file-read errors or unusual response sizes that may indicate exploitation attempts.