Skip to content

add unknown request handler - #382

Open
HavierD wants to merge 3 commits into
mainfrom
9688-unknown-request-handler
Open

HavierD wants to merge 3 commits into
mainfrom
9688-unknown-request-handler

Conversation

@HavierD

@HavierD HavierD commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@utas-raymondng

Copy link
Copy Markdown
Collaborator

I think it is better to have firewall block the scan instead of the app to handle it.

@HavierD

HavierD commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

I think it is better to have firewall block the scan instead of the app to handle it.

@utas-raymondng @NekoLyn

Blocking these URLs individually in AWS WAF is not an effective security control. They are generic product-discovery probes, and they should simply receive a low-cost 404.

A URI denylist will always be incomplete, requires ongoing maintenance, and can be bypassed with new paths. WAF rules should target exploit signatures, known bad inputs, malicious IP reputation, and excessive request rates (most of them have been applied), rather than attempting to deal with unexpected application routes.

Also the unknown paths should not be reported as unhandled exceptions.

This branch was successfully deployed

1 active deployment
test — f15c1def Deployed Nov 16, 2026 by HavierD
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