Advisory

GHSA-r9x7-2xmr-v8fw

Also known as: CVE-2022-36082, PYSEC-2022-264

Summary

mangadex-downloader vulnerable to unauthorized file reading

Details

Impact

When using file:<location> command and <location> is web URL location (http, https). mangadex-downloader will try to open and read a file in local disk if the content from online file is exist-as-a-file in victim computer

So far, the app only read the files and not execute it. But still, when someone reading your files without you knowing, it's very scary.

Proof of Concept (PoC)

https://www.mansuf.link/unauthorized-file-read-in-mangadex-downloader-cve-2022-36082/

Workarounds

Unfortunately, there is no workarounds to make it safe from this issue. But i suggest you double check the url before proceed to download or update to latest version ( >= 1.7.2)

Patches

Fixed in version 1.7.2.
Commit patch: https://github.com/mansuf/mangadex-downloader/commit/439cc2825198ebc12b3310c95c39a8c7710c9b42

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-09-16 17:45 UTC
Modified
2024-09-30 17:24 UTC

Affected packages and fixes

mangadex-downloader

PyPI · All systems

Affected

  • introduced 1.3.0, fixed 1.7.2 (ecosystem)

Fixed versions

1.7.2

Fix

  • Fixed version 1.7.2
    pip install --upgrade mangadex-downloader==1.7.2

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