Skip to content
RCE Write-up Intermediate

phpFox <= 3.0.1 (module.class.php) OS Command Injection Vulnerability

The phpFox application failed to sanitise input passed via the 'phpfox[call]' or 'core[call]' parameters before using it in an eval() call. An attacker could inject and execute arbitrary operating system commands.

karmainsecurity.com

Published on karmainsecurity.com

phpFox contains a flaw related to the PhpfoxModule::getComponent() method defined in the module.class.php script which not properly sanitize input passed via the ‘phpfox[call]’ or ‘core[call]’ parameters before using it in an eval() call. This may allow an attacker to inject and execute arbitrary OS commands.

The author, on karmainsecurity.com

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

Impact

An attacker could inject and execute arbitrary OS commands on the server.

What the attacker needed

Access to the vulnerable phpFox instance

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.

phpFox is a social networking script. A part of it takes input from the user and runs it as code without checking it first. Because of that, someone could make the server run commands of their choosing, which is very dangerous.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.