mirror of
https://github.com/telephone/LookingGlass.git
synced 2026-04-24 23:46:02 +03:00
[GH-ISSUE #48] RFC1918 space not failing validation #31
Labels
No labels
enhancement
enhancement
enhancement
pull-request
v1
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/LookingGlass#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @the-ercules on GitHub (Jul 24, 2018).
Original GitHub issue: https://github.com/telephone/LookingGlass/issues/48
Based on the code in LookingGlass.php, part of the validation process is to reject RFC1918 (private, ex 10.x.x.x. 192.168.x.x, etc.) IP space, but after the validIP function fails, an IP address can be allowed through the validURL function. I added some code in the validURL function to catch an IP address that sneaks through the validIP function. Only a private IP would get this far, so any IP address is rejected.