#include
blog.hboeck.de
#include
1–10 of 132 posts
Re: #include </etc/shadow>
#2Re: #include </etc/shadow>
#3Re: #include </etc/shadow>
#4I wouldn't read too much into it "working" with some kind of compile/show service, as they could have been using non-persistent containers.
Ultimately this seems like social engineering i.e. "Tricking privileged users into doing as root." Might have well ask them to cat /etc/shadow and email you the "nonsense" it prints.
https://devblogs.microsoft.com/oldnewthing/20180227-00/?p=98...
Re: #include </etc/shadow>
#5I would NEVER expect that one can run a C or C++ compiler on arbitrary input safely. There are so many potential attack vectors and, unless the authors have gone out of their way extensively to prevent them, it seems very likely they would suffer from buffer overflows, leaking memory to callers, and in the worst case arbitrary code execution.
I doubt any one of these websites is safe unless using very strict validation or disposable VMs/hardware in some way.
Re: #include </etc/shadow>
#6This seems contrived. So you need to send someone "evil" code that they won't read, have them compile it as root, and then ship you the resulting binary. I wouldn't read too much into it "working" with some kind of compile/show service, as they could have been using non-persistent containers. Ultimately this seems like social engineering i.e. "Tricking privileged users into doing as root." Might have well ask them to…
Re: #include </etc/shadow>
#7[deleted]
Re: #include </etc/shadow>
#8I find it more likely that the "root" user mentioned in this post is the root user of some disposable Docker container, which would be the right way to run a compiler-as-a-service.
Re: #include </etc/shadow>
#9Compiling untrusted code is already a dangerous affair. Compilers are not audited for security vulnerabilities, and many versions of popular compilers have contained memory corruption bugs or similar issues that could be leveraged to gain code execution. Many services that compile untrusted code will run the resulting binaries too, which definitely requires a sandbox or disposable VM - at which point you may as well…
Of course how a specific container is built is anyone’s guess
Re: #include </etc/shadow>
#10Maybe these services run the compilation in a docker container? shadow and lsb-release exist in many images.
They would almost universally allow you to include files, and run commands on the host.