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

improve url validation for auth47 and lnurl-auth

Public commit record

What the developer wrote

Authored by Craig Raw

50/100 · Thin
improve url validation for auth47 and lnurl-auth
✓ Descriptive subject✓ Names a concrete action or component✓ Names security-relevant behavior explicitly! No meaningful explanatory body
The short version

What changed, and why it matters

This commit tightens the checks on web addresses used during two login-style features, Auth47 and LNURL-auth. Previously, a malicious or malformed callback address could use insecure schemes such as plain HTTP on the regular internet or non-web schemes like file:// or ftp://. The patch now requires callbacks to be HTTPS, a special 'srbn' scheme, or a Tor .onion address over HTTP, and adds tests to confirm the new behavior. This reduces the risk that an attacker could trick the wallet into sending authentication data to an unintended destination.

Recommended action

Review the implementation of Utils.isSecureUrl() in the drongo submodule to confirm it correctly handles scheme case, userinfo, and .onion host detection. Ensure the validation is applied consistently wherever user-supplied URIs are parsed for network callbacks. Consider whether additional schemes or redirect behaviors need similar restrictions.

Security signals we found

01

Callback URL scheme validation added for authentication protocols

02

Rejection of clearnet HTTP and non-HTTP schemes (file://, ftp://)

03

Bech32 HRP whitelist ('lnurl') added in LnurlAuth

04

New unit tests assert rejection of insecure callback URLs

Risk score

Why this scored 63/100

Our methodology →
Potential impact 18/30
Exploitability 14/25
Stealth signal 10/15
Affected reach 10/15
Confidence 7/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.