Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-4034 PoC — polkit 缓冲区错误漏洞

Source
Associated Vulnerability
Title:polkit 缓冲区错误漏洞 (CVE-2021-4034)
Description:polkit是一个在类 Unix操作系统中控制系统范围权限的组件。通过定义和审核权限规则,实现不同优先级进程间的通讯。 polkit 的 pkexec application存在缓冲区错误漏洞,攻击者可利用该漏洞通过精心设计环境变量诱导pkexec执行任意代码。成功执行攻击后,如果目标计算机上没有权限的用户拥有管理权限,攻击可能会导致本地权限升级。
Description
CVE-2021-4034, exploit para escalado de privilegios en SO Linux  a root
Readme
# CVE-2021-4034

https://raw.githubusercontent.com/hackingyseguridad/CVE-2021-4034/main/binario

Copiar contenido RAW y pegar en la consola Bash shell:

Vulnerabilidad CVE-2021-4034 Gravedad 7.8 de fecha 18/11/2021, en el componente pkexec de Polkit  https://gitlab.freedesktop.org/polkit/polkit/ 
Versiones vulnerables de polkit: 0.92, 0.93, 0.94, 0.95, 0.96, 0.97, 0.98, 0.99, 0.100, 0.101, 0.102, 0.103, 0.104, 0.105, 0.106, 0.107, 0.108, 0.109, 0.110, 0.111, 0.112, 0.113, 0.114, 0.115, 0.116, 0.117, 0.118, 0.119, 0.120
Error en el servicio del sistema "/usr/bin/pkexec" en todas las versiones desde Mayo de 2009, en los SO Linux permite elevar privilegios a root
https://linux.die.net/man/1/pkexec

liberado el exploit, publico en internet! https://github.com/hackingyseguridad/CVE-2021-4034/ 

Alcance: Todas las maquinas, con SO Linux, desde 2009

Impacto: Cualquier usuario no privilegiado ejecutando desde la consola Bash Shell se convierte en root!  La vulnerabilidad pone en riesgo la confidencialidad e integridad de los datos, así como la disponibilidad del sistema.


<img style="float:left" alt="Escalado de privilegios" src="https://github.com/hackingyseguridad/CVE-2021-4034/blob/main/exploit.png">

www.hackingyseguridad.com
File Snapshot

[4.0K] /data/pocs/765169bb05cf3d6c160441e0c6f269a27bc7109b ├── [ 58K] binario ├── [1008] CVE-2021-4031_1.sh ├── [1.2K] CVE-2021-4034.sh ├── [ 42K] exploit.png └── [1.2K] README.md 0 directories, 5 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.