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

Harden public form values

Public commit record

What the developer wrote

Authored by Nicolas Dorier

35/100 · Opaque
Harden public form values
✓ Descriptive subject! No meaningful explanatory body
The short version

What changed, and why it matters

This commit hardens how BTCPay Server handles public web forms used during checkout, such as crowdfunding and point-of-sale purchases. Before the fix, shoppers could tamper with hidden or visible form fields to change prices, add bogus fees, inject oversized data, or overwrite server-only values. The patch now forces the real price to be set after the user submits the form but before validation, rejects non-numeric amount adjustments, clears values that should be server-controlled, caps text field lengths at 10,000 characters, and adds tests showing these tampering attempts are now blocked.

Recommended action

Deploy the patched version. Review any custom form providers or plugins that derive from FormComponentProviderBase to ensure they also enforce value length limits and do not trust client-submitted values for server-calculated or constant fields. Monitor logs for validation failures on public forms.

Security signals we found

01

Client-controlled hidden amount field could override invoice price before validation

02

Amount validation moved after server-side price assignment to prevent price tampering

03

Decimal parsing of amount adjustments now uses invariant culture and rejects invalid/non-numeric input

04

Fieldset values are cleared on validation, blocking submission of server-only constant field data

05

Input and textarea fields now enforce a 10,000-character length limit

06

Tests added for forged amount, oversized values, forged fieldset values, and invalid adjustment values

Risk score

Why this scored 77/100

Our methodology →
Potential impact 22/30
Exploitability 18/25
Stealth signal 12/15
Affected reach 13/15
Confidence 8/10
Evidence quality 4/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.