Harden pre-auth setup endpoints (#1041, #1044)

fix(api): harden pre-auth setup endpoints (#1041, #1044)
Harden pre-auth setup endpoints (#1041, #1044)487bdf-fix-harden-pre-auth-setup-endpoints-1041-1044-cve-2026-58466fixharden pre auth setup endpoints 1041

Committed by EstrellaXD

commit message
fix(api): harden pre-auth setup endpoints (#1041, #1044)

/setup/test-downloader now validates the URL scheme (http/https only) like
test-rss already did, and accepts qBittorrent 5.2's 204 login response.
Raw exception and response detail is no longer echoed back from the
pre-authentication setup endpoints; it goes to the server log only.
 
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014w1Z6Nxy6XTRgkFXqPr9Zh

Editor assessment

This commit patches CVE-2026-58466. The subject names the area and the goal - hardening pre-auth setup endpoints - with two PR references in the header. The body explains both halves: the test-downloader endpoint now restricts URL schemes to http and https, matching what test-rss already did, and it tolerates qBittorrent 5.2's 204 login response. It then states that raw exception and response detail is no longer echoed to callers, only written to the server log, which is the security-relevant part and is described in terms a reader can act on. It remains terse, lacks a scope such as `setup`, and does not say what an attacker could learn from the previous error bodies.

Browse categories

More fix examples · Back to search