Skip to content

Potential Fix Bypass - [SSRF Vulnerability on assetlinks_check(act_name, well_knowns)]

High
ajinabraham published GHSA-m435-9v6r-v5f6 Mar 22, 2024

Package

No package listed

Affected versions

<=3.9.6

Patched versions

3.9.7

Description

Summary

When we examined the fix for the "SSRF Vulnerability on assetlinks_check(act_name, well_knowns)" vulnerability we detected, we saw that it could potentially be bypassed.

Details

Since the requests.get() request in the _check_url method is specified as allow_redirects=True, if "https://mydomain.com/.well-known/assetlinks.json" returns a 302 redirect, subsequent requests will be sent automatically. If the redirect location is "http://192.168.1.102/user/delete/1", a request will be sent here as well.

image

It will be safer to use allow_redirects=False.

Impact

The attacker can cause the server to make a connection to internal-only services within the organization's infrastructure.

Severity

High

CVE ID

CVE-2024-54000

Weaknesses

No CWEs

Credits