Skip to content

Guard the dashboard against unhandled errors - #31

Merged
csmnprschv merged 1 commit into
mainfrom
cosmin-guard-dashboard-against-unhandled-errors
Sep 17, 2026
Merged

csmnprschv merged 1 commit into
mainfrom
cosmin-guard-dashboard-against-unhandled-errors

Conversation

@csmnprschv

Copy link
Copy Markdown
Collaborator

The dashboard parsed req.url without guarding the call. A leading //
makes the target protocol-relative, so the next segment is read as the
host, and a host cannot contain a slash. Bots that scan for secrets
requested //%2F.env, where %2F is an encoded slash, the parse threw,
and the process crashed.

While at it, guard the other paths of the same shape.

The dashboard parsed req.url without guarding the call. A leading //
makes the target protocol-relative, so the next segment is read as the
host, and a host cannot contain a slash. Bots that scan for secrets
requested //%2F.env, where %2F is an encoded slash, the parse threw,
and the process crashed.

While at it, guard the other paths of the same shape.

Signed-off-by: Cosmin Paraschiv <cosmin@parity.io>
@csmnprschv csmnprschv self-assigned this Sep 15, 2026
@csmnprschv
csmnprschv merged commit fad28bd into main Sep 17, 2026
15 checks passed
@csmnprschv
csmnprschv deleted the cosmin-guard-dashboard-against-unhandled-errors branch September 17, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants