Skip to content

No configurable scheme allowlist or length cap for webhook_url #129

Description

@Darkdruce

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.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26apiHTTP API surface and handlersconfigConfiguration and environment handlingsecurity

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions