Skip to content

fix: block full 172 private host range - #1442

Open
silentgeckoaudit3801 wants to merge 2 commits into
LabsCrypt:mainfrom
silentgeckoaudit3801:fix-private-host-172-16-range-1339
Open

fix: block full 172 private host range#1442
silentgeckoaudit3801 wants to merge 2 commits into
LabsCrypt:mainfrom
silentgeckoaudit3801:fix-private-host-172-16-range-1339

Conversation

@silentgeckoaudit3801

Copy link
Copy Markdown

Closes #1339

Summary:

  • Expand the private-host guard to cover the full RFC1918 172.16.0.0/12 range, including 172.16.x.x.
  • Export the helper so the boundary logic can be tested directly.
  • Add regression coverage for 172.16/172.31 being blocked and neighboring public 172.15/172.32 ranges remaining allowed.

Validation:

  • Static GitHub API/source inspection only; local backend dependency or test commands were not run to avoid installing or executing project dependencies in this environment.

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.

[Backend] SSRF: private-range guard misses part of the 172.16.0.0/12 block

1 participant