RoSPORA <= 1.5.0 (index.php) PHP Code Injection Vulnerability
The index.php script of RoSPORA passed the user-supplied 's' GET parameter into a call to PHP's create_function() without proper sanitisation. An attacker could inject and execute arbitrary PHP code on the server.
karmainsecurity.com
Published on karmainsecurity.com
RoSPORA contains a flaw that allows malicious users to inject and execute arbitrary PHP code. The issue is due to user-supplied input passed through the $GET[’s'] parameter isn’t properly sanitized before being used in a call to the createfunction() PHP function into the index.php script.
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 built a function body from unsanitised GET input and passed it to create_function(), which evaluates the string as PHP code.
Impact
An attacker could inject and execute arbitrary PHP code on the server, which could lead to full compromise of the application and its data.
What the attacker needed
Access to the index.php script; ability to send a crafted GET request
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 takes a value from the web address (the part after the question mark) and uses it to build a piece of PHP code that the server then runs. Because it never checks or cleans that value, someone can put their own PHP instructions into the address and the server will execute them. That means an attacker can run their own code on the website's server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.