Advisory

GHSA-fg86-4c2r-7wxw

Also known as: CVE-2024-40624

Summary

TorrentPier Deserialization of Untrusted Data vulnerability

Details

Summary

In torrentpier/library/includes/functions.php, get_tracks() uses the unsafe native PHP serialization format to deserialize user-controlled cookies:

https://github.com/torrentpier/torrentpier/blob/84f6c9f4a081d9ffff4c233098758280304bf50f/library/includes/functions.php#L41-L60

PoC

One can use `phpggc` and the chain Guzzle/FW1 to write PHP code to an arbitrary file, and execute commands on the system. For instance, the cookie bb_t will be deserialized when browsing to viewforum.php.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2024-07-15 17:48 UTC
Modified
2026-05-13 13:55 UTC

Affected packages and fixes

torrentpier/torrentpier

Packagist · All systems

Affected

  • introduced 0, fixed 2.4.4 (ecosystem)

Fixed versions

2.4.4

Fix

The export has no generic command for this ecosystem.

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