- Security researcher working Chaitin Tech.
- CTF Player @FlappyPig @r3kapig
- Blog | Twitter
winmin / cve-2021-3560 Goto Github PK
View Code? Open in Web Editor NEWPolicyKit CVE-2021-3560 Exploitation (Authentication Agent)
PolicyKit CVE-2021-3560 Exploitation (Authentication Agent)
Hi,
Tried to compile the exploit on diffrent machine including centos 6.9 and ubuntu 20 i get these errors :
gcc exploit.c -o exploit agent.c agent.h -pthread -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -lgio-2.0 -lgobject-2.0 -lglib-2.0 -g -Wall -Werror -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -ldbus-1 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0
exploit.c: In function ‘main’:
exploit.c:100:36: error: ‘%s’ directive writing up to 1023 bytes into a region of size 1019 [-Werror=format-overflow=]
100 | sprintf(arguments->path, "/tmp/%s", arguments->name);
| ^~
exploit.c:100:5: note: ‘sprintf’ output between 6 and 1029 bytes into a destination of size 1024
100 | sprintf(arguments->path, "/tmp/%s", arguments->name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:12: exploit] Error 1
Thank You.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.