Monday, December 16. 2019
#include </etc/shadow>
Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Accessing /etc/shadow with a compiler? Surely not.
On all systems that I have available I get the following:
$ cat t.c
#include
$ gcc t.c
t.c:1:10: fatal error: /etc/shadow: Permission denied
#include
^~~~~~~~~~~~~
compilation terminated.
On all systems that I have available I get the following:
$ cat t.c
#include
$ gcc t.c
t.c:1:10: fatal error: /etc/shadow: Permission denied
#include
^~~~~~~~~~~~~
compilation terminated.
As he said: "This effectively means this service is running compile tasks as root"
I assume you don't run your compiler as root.
I assume you don't run your compiler as root.
This reminds me of a compiler bomb attack involving C source code crafted to require massive amounts of memory and diskspace to compile.
On some OSs and filesystems you can also include directories as regular files. This allows you to enumerate files on the system.