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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2021-3493 PoC — Linux kernel 安全漏洞

Source
Associated Vulnerability
Title: Linux kernel 安全漏洞 (CVE-2021-3493)
Description:The overlayfs implementation in the linux kernel did not properly validate with respect to user namespaces the setting of file capabilities on files in an underlying file system. Due to the combination of unprivileged user namespaces along with a patch carried in the Ubuntu kernel to allow unprivileged overlay mounts, an attacker could use this to gain elevated privileges.
Description
2021 kernel vulnerability in Ubuntu.
Readme
# overlayFS CVE-2021-3493
## OverlayFs
OverlayFS es un módulo del kernel de Linux que permite al sistema combinar varios puntos de montaje en uno, para que pueda acceder a todos los archivos de cada uno dentro de una estructura de directorio. 

## Sobre la vulnerabilidad
Hace poco SSD-Discloure lanzó un PoC para un exploit del kernel de Ubuntu [(link)](https://ssd-disclosure.com/ssd-advisory-overlayfs-pe/). 
Esta vulnerabilidad fue muy grave ya  que OverlayFS se instalaba de forma predeterminada en Ubuntu1804 Server. 
Si dicho sistema es vulnerable, se puede escalar al usuario root fácil. Pero siempre que pueda ejecutar un binario


![imagen](https://user-images.githubusercontent.com/82907557/132988482-5e49cb10-28c8-4bc4-a8f7-3a76dee5b36b.png)

Como vemos, el servidor SSH tiene instalado un compilador de C. Lo utilizamos para compilarlo y posteriormente lo ejecutamos. Y ya estaríamos como root.

## Lecturas
[CVE Details](https://www.cvedetails.com/cve/CVE-2021-3493/?q=CVE-2021-3493)

[CVE MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3493)
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →