News for hackers. Stuff that matters.
Re:Compiler Explorer by foxrob92 on Friday December 14, 2018 @07:32AM (#18680342)
Doesn't look like it works any more.

In any case, Matt Godbolt has spoken a bit about the architecture of Compiler Explorer. Seems like he's given some thought to security.

https://www.youtube.com/watch?v=bSkpMdDe4g4

https://www.youtube.com/watch?v=nAbCKa0FzjQ

Re:Compiler Explorer by wyldfire on Friday December 14, 2018 @09:30AM (#18681009)
IIRC the main sandboxing comes from a wrapper around libc that restricts pathnames used in open() and friends. It seems reasonably well designed for its intent but probably not super difficult to escape. Certainly if the C library adds another entry point, it won't be obvious that there's a new way around.

What the Compiler Explorer has going for it in this regard is that there's very little treasure to be found once you escape. No user accounts, no passwords, no security questions, no financial transactions, etc.

Compiler Explorer doesn't execute the programs it builds, so the risk is limited to what you can convince the compiler/assembler to do on your behalf.

Re:Compiler Explorer by twic on Friday December 14, 2018 @02:10PM (#18683615)
> limited to what you can convince the compiler/assembler to do on your behalf

C++ is a not a language where i would have a lot of confidence in that limitation!

Re:Compiler Explorer by echeese on Friday December 14, 2018 @05:14PM (#18685358)
Works for me, you just gotta pass -E in the args. Also need to spell include right.