GHSA-373w-rj84-pv6x SafeURL-Python's hostname blocklist does not block FQDNs
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
Description
Description
If a hostname was blacklisted, it was possible to bypass the blacklist by requesting the FQDN of the host (e.g. adding . to the end).
Impact
The main purpose of this library is to block requests to internal/private IPs and these cannot be bypassed using this finding. But if a library user had specifically set certain hostnames as blocked, then an attacker would be able to circumvent that block to cause SSRFs to request those hostnames.
Patches
Fixed by https://github.com/IncludeSecurity/safeurl-python/pull/6
Credit
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi safeurl-python(PyPI) | < 1.3; = 1.0; = 1.2 | 1.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi safeurl-python(PyPI) | < 1.3 | 1.3 |
| pypi safeurl-python(PyPI) | = 1.0 | No fix listed |
| pypi safeurl-python(PyPI) | = 1.2 | No fix listed |
References
- github.com vendor-advisory
- github.com patch
- github.com patch
- github.com product
- github.com