You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is presumably to make the matching case-insensitive.
It introduces a bypass, in that each blacklisted/whitelisted domain name is treated as a regex. Domains almost always include the . character which is a regex metacharacter.
For example, a domain whitelist of ['accounts.google.com'] would allow requests to https://accountszgoogle.com
The text was updated successfully, but these errors were encountered:
I see in #7 you wanted the ability for a developer to whitelist "company.com" and have it match "subdomain.company.com". My fix in #25 does not do this - but nor does the original code, so no harm done.
safecurl/src/fin1te/SafeCurl/Options.php
Lines 210 to 216 in a7c3d70
This is presumably to make the matching case-insensitive.
It introduces a bypass, in that each blacklisted/whitelisted domain name is treated as a regex. Domains almost always include the
.
character which is a regex metacharacter.For example, a domain whitelist of
['accounts.google.com']
would allow requests tohttps://accountszgoogle.com
The text was updated successfully, but these errors were encountered: