.. / CVE-2022-35508

Exploit for Proxmox Virtual Environment (PVE), Proxmox Mail Gateway (PMG) - Server-Side Request Forgery (CVE-2022-35508)

Description:

Proxmox Virtual Environment (PVE) and Proxmox Mail Gateway (PMG) are vulnerable to SSRF when proxying HTTP requests between pve(pmg)proxy and pve(pmg)daemon. An attacker with an unprivileged account can craft an HTTP request to achieve SSRF and file disclosure of any files on the server. Also, in Proxmox Mail Gateway, privilege escalation to the root@pam account is possible if the backup feature has ever been used, because backup files such as pmg-backup_YYYY_MM_DD_*.tgz have 0644 permissions and contain an authkey value. This is fixed in pve-http-server 4.1-3.

Proof of Concept

PoC exploit

Try the exploit in a lab environment:

Lab Machine Link
Hack The Box Corporate Go to Practice

References:

https://nvd.nist.gov/vuln/detail/CVE-2022-35508
https://github.com/advisories/GHSA-jfjw-xc26-6xpm