What does SELinux do to contain the the bash exploit?
The text explains that SELinux does not block the ShellShock bash exploit itself, but it confines the exploited Apache process to a limited domain, preventing it from reading or writing most sensitive files. An attacker could still execute commands as the web server user, but SELinux would restrict the damage to files allowed by policy.
danwalsh.livejournal.com
Published on danwalsh.livejournal.com
{{media:1}}danwalsh
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the bash vulnerability allows arbitrary command execution, but SELinux policy confines the web server process to a domain that can only access a limited set of files.
Impact
The exploit could still run commands as the web server user, but SELinux would prevent access to most sensitive files, limiting the damage and buying time to patch.
What the attacker needed
SELinux enabled and enforcing; Apache runs CGI scripts; Bash vulnerable to ShellShock
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
SELinux is a security feature on Linux that limits what programs can do, even if they are hacked. This article says that when the bash bug (ShellShock) is used to run commands on a web server, SELinux does not stop the commands from running, but it stops them from accessing most important files. So the attacker can do less damage.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.