Summary
AB Download Manager's unauthenticated browser-integration API may accept cross-site requests that write attacker-chosen files to arbitrary paths. If a user visits a malicious page while the API is reachable, an attacker could place a payload in a startup folder, potentially leading to code execution at the next login.
AB Download Manager's unauthenticated browser-integration API may accept cross-site requests that write attacker-chosen files to arbitrary paths. If a user visits a malicious page while the API is reachable, an attacker could place a payload in a startup folder, potentially leading to code execution at the next login.
Affected context
The issue concerns the browser-integration API endpoint /start-headless-download in AB Download Manager. Risk arises when the API is accessible to a victim's browser without authentication and accepts cross-origin text/plain requests containing attacker-controlled folder and file-name values. The reported behavior affects versions before 1.11.2.
The issue concerns the browser-integration API endpoint /start-headless-download in AB Download Manager. Risk arises when the API is accessible to a victim's browser without authentication and accepts cross-origin text/plain requests containing attacker-controlled folder and file-name values. The reported behavior affects versions before 1.11.2.
Exploit preconditions
- Attack surface: The browser-accessible
/start-headless-downloadendpoint must be reachable from the victim's browser. - Required access: The API is described as unauthenticated; an attacker may not need an account, but typically needs a victim to visit a malicious page.
- Trigger point: The victim's browser sends a cross-site request to the endpoint.
- Why exploitation is possible: The endpoint accepts attacker-controlled path-related values without sufficient protection against cross-site request forgery or unsafe file placement.
- Attack surface: The browser-accessible
/start-headless-downloadendpoint must be reachable from the victim's browser. - Required access: The API is described as unauthenticated; an attacker may not need an account, but typically needs a victim to visit a malicious page.
- Trigger point: The victim's browser sends a cross-site request to the endpoint.
- Why exploitation is possible: The endpoint accepts attacker-controlled path-related values without sufficient protection against cross-site request forgery or unsafe file placement.
Why this happens
The underlying issue is a missing or ineffective defense against cross-site request forgery, mapped to CWE-352. A browser can send requests to a reachable local or network service on a user's behalf, and the endpoint processes the request without adequately verifying that it originated from a trusted interaction. Accepting attacker-controlled folder and name values can turn that request into an arbitrary file-write operation.
The underlying issue is a missing or ineffective defense against cross-site request forgery, mapped to CWE-352. A browser can send requests to a reachable local or network service on a user's behalf, and the endpoint processes the request without adequately verifying that it originated from a trusted interaction. Accepting attacker-controlled folder and name values can turn that request into an arbitrary file-write operation.
Potential impact
- An attacker could write files to locations accessible to the application.
- A payload placed in a startup folder may execute when the user next logs in.
- The affected system could be compromised, depending on the file location, permissions, and operating-system behavior.
- Malicious files could persist or enable further unauthorized activity.
- An attacker could write files to locations accessible to the application.
- A payload placed in a startup folder may execute when the user next logs in.
- The affected system could be compromised, depending on the file location, permissions, and operating-system behavior.
- Malicious files could persist or enable further unauthorized activity.
General mitigation guidance
Defensive patterns include requiring explicit authorization for sensitive file operations and verifying request origin using robust CSRF protections. Avoid trusting browser-supplied paths: constrain file writes to a dedicated directory, canonicalize and validate paths, and apply restrictive filesystem permissions. Where possible, bind local integration APIs to a limited interface and require an explicit user-mediated action before writing files. Run the application with only the privileges needed for its function.
Defensive patterns include requiring explicit authorization for sensitive file operations and verifying request origin using robust CSRF protections. Avoid trusting browser-supplied paths: constrain file writes to a dedicated directory, canonicalize and validate paths, and apply restrictive filesystem permissions. Where possible, bind local integration APIs to a limited interface and require an explicit user-mediated action before writing files. Run the application with only the privileges needed for its function.
How teams detect issues like this
- Review API handlers for unauthenticated state-changing actions and missing CSRF or origin validation.
- Use static analysis and code review to identify request-controlled values passed to filesystem write operations.
- Monitor for unexpected file creation, especially in startup locations, and correlate it with requests to the browser-integration endpoint.
- Enforce policies that restrict application writes to approved directories and flag sensitive endpoints that lack authentication or request-origin controls.
- Review API handlers for unauthenticated state-changing actions and missing CSRF or origin validation.
- Use static analysis and code review to identify request-controlled values passed to filesystem write operations.
- Monitor for unexpected file creation, especially in startup locations, and correlate it with requests to the browser-integration endpoint.
- Enforce policies that restrict application writes to approved directories and flag sensitive endpoints that lack authentication or request-origin controls.

