Vulnerabilities in pkg:pypi/mobsfscan

PACKAGE
Advisory Identifier: GHSA-wfgj-wrgh-h3r3
Advisory Summary

CVE-2024-29190 is a HIGH (CVSS 7.3) ssrf vulnerability on assetlinks_check(act_name, well_knowns) vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Mobsfscan libraries in the PyPI ecosystem. The issue involves ssrf vulnerability on assetlinks_check(act_name, well_knowns). Remediation is available by upgrading affected packages to version 0.3.8.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/mobsfscan

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/mobsfscan. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-wfgj-wrgh-h3r3 CVE-2024-29190 HIGH SSRF Vulnerability on assetlinks_check(act_name, well_knowns)

CVE-2024-29190 at a Glance

CVE Identifier CVE-2024-29190
GHSA Identifier GHSA-wfgj-wrgh-h3r3
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Mobsfscan
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2024-29190

To remediate this vulnerability, upgrade all affected Mobsfscan dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mobsfscan fixed: 0.3.8
pip install mobsfscan>=0.3.8
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show mobsfscan

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-29190, inspect your installed packages using pip:

pip show mobsfscan

Analyze the terminal output to locate any version of Mobsfscan in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.8), your application is affected.

Note: The pip show mobsfscan command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Mobsfscan, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary While examining the "App Link assetlinks.json file could not be found" vulnerability detected by MobSF, we, as the Trendyol Application Security team, noticed that a GET request was sent to the "/.well-known/assetlinks.json" endpoint for all hosts written with "android:host". In the AndroidManifest.xml file. Since MobSF does not perform any input validation when extracting the hostnames in "android:host", requests can also be sent to local hostnames. This may cause SSRF vulnerability. ### Details Example <intent-filter structure in AndroidManifest.xml: ``` <intent-filter android:autoVerify="true"> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:host="192.168.1.102/user/delete/1#" android:scheme="http" /> </intent-filter> ``` We defined it as android:host="192.168.1.102/user/delete/1#". Here, the "#" character at the end of the host prevents requests from being sent to the "/.well-known/assetlinks.json" endpoint and ensures that requests are sent to the endpoint before it. <img width="617" alt="image" src="https://github.com/MobSF/Mobile-Security-Framework-MobSF/assets/150332295/c570cb00-e947-4ad7-af80-26d46c0ad3f7"> ### PoC https://drive.google.com/file/d/1nbKMd2sKosbJef5Mh4DxjcHcQ8Hw0BNR/view?usp=share_link ### Impact The attacker can cause the server to make a connection to internal-only services within the organization's infrastructure.

CVE-2024-29190 Affected Mobsfscan Versions

1 component(s)
Fixed Versions:
0.3.8
Product / Package Ecosystem Affected Versions Fixed Version
mobsfscan
PyPI
< 0.3.8
0.3.8

References

Frequently Asked Questions

What is CVE-2024-29190?
CVE-2024-29190 is a security vulnerability in Mobsfscan involving SSRF Vulnerability on assetlinks_check(act_name, well_knowns) under CWE-918: Server-Side Request Forgery (SSRF).
Which Mobsfscan versions are affected?
Affected versions include releases prior to 0.3.8 across affected packages: mobsfscan.
What version fixes CVE-2024-29190?
Upgrading to 0.3.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mobsfscan affected?
Yes, mobsfscan is affected in releases prior to 0.3.8. Upgrade your dependency to 0.3.8 or later.
What is the CVSS score of CVE-2024-29190?
CVE-2024-29190 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2024-29190?
CVE-2024-29190 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check PyPI dependencies for CVE-2024-29190?
Run the dependency tree command: 'pip show mobsfscan'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-wfgj-wrgh-h3r3",
  "modified" : "2025-06-30T19:03:32Z",
  "published" : "2024-03-22T23:54:53Z",
  "aliases" : [ "CVE-2024-29190" ],
  "summary" : "SSRF Vulnerability on assetlinks_check(act_name, well_knowns)",
  "details" : "### Summary\nWhile examining the \"App Link assetlinks.json file could not be found\" vulnerability detected by MobSF, we, as the Trendyol Application Security team, noticed that a GET request was sent to the \"/.well-known/assetlinks.json\" endpoint for all hosts written with \"android:host\". In the AndroidManifest.xml file.\n\nSince MobSF does not perform any input validation when extracting the hostnames in \"android:host\", requests can also be sent to local hostnames. This may cause SSRF vulnerability.\n\n### Details\nExample <intent-filter structure in AndroidManifest.xml:\n\n```\n<intent-filter android:autoVerify=\"true\">\n<action android:name=\"android.intent.action.VIEW\" />\n<category android:name=\"android.intent.category.DEFAULT\" />\n<category android:name=\"android.intent.category.BROWSABLE\" />\n<data android:host=\"192.168.1.102/user/delete/1#\" android:scheme=\"http\" />\n</intent-filter>\n```\n\n\nWe defined it as android:host=\"192.168.1.102/user/delete/1#\". Here, the \"#\" character at the end of the host prevents requests from being sent to the \"/.well-known/assetlinks.json\" endpoint and ensures that requests are sent to the endpoint before it.\n\n\n<img width=\"617\" alt=\"image\" src=\"https://github.com/MobSF/Mobile-Security-Framework-MobSF/assets/150332295/c570cb00-e947-4ad7-af80-26d46c0ad3f7\">\n\n\n### PoC\nhttps://drive.google.com/file/d/1nbKMd2sKosbJef5Mh4DxjcHcQ8Hw0BNR/view?usp=share_link\n\n\n### Impact\nThe attacker can cause the server to make a connection to internal-only services within the organization's infrastructure.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "mobsfscan"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/MobSF/Mobile-Security-Framework-MobSF/security/advisories/GHSA-wfgj-wrgh-h3r3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-29190"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/5a8eeee73c5f504a6c3abdf2a139a13804efdb77"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/MobSF/mobsfscan/commit/61fd40b477bbf9d204eb8c5a83a86c396d839798"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/MobSF/mobsfscan/commit/cd01b71770a6e56c1c71b0e5f454e7b6c9c64ef4"
  }, {
    "type" : "WEB",
    "url" : "https://drive.google.com/file/d/1nbKMd2sKosbJef5Mh4DxjcHcQ8Hw0BNR/view?usp=share_link"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/MobSF/Mobile-Security-Framework-MobSF"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/mobsf/PYSEC-2024-257.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-22T23:54:53Z",
    "nvd_published_at" : "2024-03-22T23:15:07Z"
  }
}