Feed on Feeds <= 0.5 (fof-main.php) PHP Code Injection Vulnerability
Feed on Feeds did not properly sanitise the feed_order POST parameter before passing it to PHP's create_function(), allowing a remote attacker to inject and execute arbitrary PHP code.
karmainsecurity.com
Published on karmainsecurity.com
Feed on Feeds contains a flaw which allows a remote attacker to inject and execute arbitrary PHP code. The issue is due to user-supplied input passed through the $POST[‘feedorder’] parameter to set-prefs.php isn’t properly sanitized before being used in a call to the createfunction() PHP function.
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 application passed unsanitised user input directly into create_function(), which evaluates its arguments as PHP code.
Impact
A remote attacker could inject and execute arbitrary PHP code on the server.
What the attacker needed
Access to set-prefs.php; ability to send POST requests
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.
This software let a user change a setting called feed order. The value typed in was used to build a piece of PHP code without being cleaned first, so someone could sneak their own code into it and make the server run it. That means an attacker could take control of the website.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.