Skip to content

Update urls.go: Fix URL canonicalization filter evasion#157

Open
DaftCode101 wants to merge 1 commit intogoogle:masterfrom
DaftCode101:master
Open

Update urls.go: Fix URL canonicalization filter evasion#157
DaftCode101 wants to merge 1 commit intogoogle:masterfrom
DaftCode101:master

Conversation

@DaftCode101
Copy link
Copy Markdown

Related VRP Ticket: 501230541

This patch rectifies a path parsing omission in parseURL() to ensure compliance with the Google Safe Browsing API v4 specification.

Previously, the implementation did not scrub backslashes () from the URL string. This allowed for a canonicalization disparity where the Go library would treat backslashes as part of the hostname, diverging from how modern browsers natively normalize them to forward slashes (/).

This 1-line normalization step ensures parity with standard RFC URI behavior and Chrome's native parsing methodologies.

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.

1 participant