Concrete5 <= 8.5.5 (Logging Settings) Phar Deserialization Vulnerability
The logging settings page in Concrete5 accepted a user-supplied value that was later used to load a PHP file, allowing an authenticated administrator to trigger a Phar deserialisation. An attacker with admin access could use this to execute code on the server.
karmainsecurity.com
Published on karmainsecurity.com
The vulnerable code is located within the /concrete/controllers/singlepage/dashboard/system/environment/logging.php script. Specifically, into the Logging::updatelogging() method:
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 logging configuration value was passed to a file operation without validating that it was a safe path, so a Phar archive could be deserialised.
What the attacker needed
Admin access to the dashboard
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.
Concrete5 is a content management system. Its logging settings page let an admin choose a file to load, and PHP would treat a specially crafted archive file (a Phar) as data to unpack, which can run hidden code. This needs an admin account, so it is mostly a way to turn admin access into full server control.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.