Summary
Beyond the http(s) prefix check there is no max length or configurable scheme/host policy for webhook URLs.
Location
src/api/payments.rs:129-136
Details & impact
Extremely long URLs are stored/echoed, and there's no operator control over allowed destinations (ties into SSRF/HTTPS issues).
Suggested fix
Enforce a max length and an operator-configurable host/scheme allowlist.
Acceptance criteria
- URL length and destination policy are enforced and configurable.
Summary
Beyond the
http(s)prefix check there is no max length or configurable scheme/host policy for webhook URLs.Location
src/api/payments.rs:129-136Details & impact
Extremely long URLs are stored/echoed, and there's no operator control over allowed destinations (ties into SSRF/HTTPS issues).
Suggested fix
Enforce a max length and an operator-configurable host/scheme allowlist.
Acceptance criteria