top of page

2021 | Baget Exploit

Process creation chain: unpriv_user → pkexec → /bin/sh -c "arbitrary command"

The attack works as follows:

Restrict execution permissions on "upload" folders so that uploaded files cannot be run as scripts. Access Control: baget exploit 2021

The exploit was first publicly disclosed on , by security researcher Abdullah Khawaja. A second, similar vulnerability involving arbitrary file uploads was reported just two days later by another researcher. These discoveries highlighted a significant security gap in the version 1.0 release of the software. Impact and Risks

Once uploaded, the attacker accesses the file via a direct URL to execute system-level commands on the server. Process creation chain: unpriv_user → pkexec → /bin/sh

Do your build pipelines currently rely on a single, global nuget.config file?

If you managed an Exchange server in 2021 (or even today, as dormant Baget instances may still exist), here is how security teams responded: These discoveries highlighted a significant security gap in

This is the most significant exploit associated with the system. Attackers could bypass image upload filters to upload a malicious PHP file. Because the application did not adequately sanitize user-supplied input, an unauthenticated user could execute commands directly on the hosting web server. Arbitrary File Upload via

bottom of page