/

CVE-2026-121451

Severity:

HIGH RISK

(8.8)

CSRF File-Write Flaw (CWE-352) in AB Download Manager API

CVE-2026-121451

Deferred

Vulnerability type

Category:

Cross-Site Request Forgery (CSRF)

CWE:

CWE-352

Impact:

Arbitrary file write, with potential for code execution

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

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-download endpoint 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-download endpoint 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.

Sources

SourceLink
github.comgithub.com/amir1376/ab-download-manager
github.comgithub.com/amir1376/ab-download-manager/blob/v1.11.1/desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/integration/IntegrationHandlerImp.kt#L55-L88
github.comgithub.com/amir1376/ab-download-manager/blob/v1.11.1/integration/server/src/main/kotlin/com/abdownloadmanager/integration/Endpoints.kt#L27-L75
github.comgithub.com/amir1376/ab-download-manager/commit/34cd27af6a9a6c2046af112bc9bd34828fec0bbc
github.comgithub.com/amir1376/ab-download-manager/issues/1489
vulncheck.comvulncheck.com/advisories/ab-download-manager-before-1.11.2-arbitrary-file-write-via-start-headless-download-csrf

Frequently asked

questions

A malicious page may be able to trigger the browser-accessible API remotely if it is reachable from the victim's browser. The described scenario generally depends on a victim visiting that page.

The API is described as unauthenticated, so an account may not be required. Exploitation still depends on endpoint reachability and the request being processed.

Protect sensitive actions with authorization and CSRF defenses, and restrict file writes to a validated, dedicated directory rather than trusting client-provided paths.

Treat browser requests and their parameters as untrusted, require explicit authorization for state-changing operations, and review file-writing endpoints for origin checks, path validation, and least-privilege access.

A malicious page may be able to trigger the browser-accessible API remotely if it is reachable from the victim's browser. The described scenario generally depends on a victim visiting that page.

The API is described as unauthenticated, so an account may not be required. Exploitation still depends on endpoint reachability and the request being processed.

Protect sensitive actions with authorization and CSRF defenses, and restrict file writes to a validated, dedicated directory rather than trusting client-provided paths.

Treat browser requests and their parameters as untrusted, require explicit authorization for state-changing operations, and review file-writing endpoints for origin checks, path validation, and least-privilege access.

Find out what's already
exploitable in your codebase.