AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 34 Bitcoin

Use canonical URL for generated links (#7662)

Public commit record

What the developer wrote

Authored by Nicolas Dorier

53/100 · Thin
Use canonical URL for generated links (#7662)
✓ Descriptive subject✓ Names a concrete action or component✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
The short version

What changed, and why it matters

This commit changes how BTCPay Server builds links that are shown to users or sent in emails. Instead of using the web address from the current incoming request, it uses a configured canonical server URL. This likely fixes situations where generated links could point to the wrong domain—such as when the server is behind a reverse proxy, accessed via an unexpected hostname, or manipulated by a Host-header attack—preventing users from being redirected to attacker-controlled sites or from email links failing to work.

Recommended action

Review the CallbackGenerator implementation to confirm it only returns the administrator-configured canonical URL and cannot be influenced by request headers. Verify that all other locations generating user-facing or email links also use the canonical helper. Consider whether this change should be backported if previous releases generated request-dependent links in these features.

Security signals we found

01

Replaces request-derived base URL with canonical configured base URL for generated links

02

Affects email links (multisig signer invitations) and QR-code checkout links

03

Mitigates Host-header or reverse-proxy misconfiguration causing incorrect outbound links

04

Adds/updates tests to assert canonical URL is used in generated content

05

No explicit CVE, advisory, or security disclosure referenced in commit

Risk score

Why this scored 34/100

Our methodology →
Potential impact 8/30
Exploitability 6/25
Stealth signal 4/15
Affected reach 7/15
Confidence 6/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.