Advisory

GHSA-373w-rj84-pv6x

Also known as: None

Summary

SafeURL-Python's hostname blocklist does not block FQDNs

Details

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
https://github.com/Sim4n6

Severity

Low Basis: The source's own band: LOW

Dates

Published
2023-06-29 15:02 UTC
Modified
2025-02-14 05:29 UTC

Affected packages and fixes

safeurl-python

PyPI · All systems

Affected

  • introduced 0, fixed 1.3 (ecosystem)

Fixed versions

1.3

Fix

  • Fixed version 1.3
    pip install --upgrade safeurl-python==1.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences