Server-side Request Forgery (SSRF) Affecting safeurl-python package, versions [,1.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.08% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PYTHON-SAFEURLPYTHON-3251746
  • published 27 Jan 2023
  • disclosed 27 Jan 2023
  • credit Dirox

How to fix?

Upgrade safeurl-python to version 1.2 or higher.

Overview

safeurl-python is a library that aids developers in protecting against SSRF

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) in some circumstances, due to a permissive regex (re.match("(?i)^%s" % domain, value)) used in domain filtering. This allows a benign domain like victim.com that appears on the allowlist to match the unintended domain victimacomattacker.com. The most common use of the allowlist functionality is for internal resources and therefore the potential for successful SSRF is limited.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
5.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    Low
  • Availability (A)
    None
Expand this section

NVD

5.3 medium