Security Advisory: Achieving PHP Code Execution in ILIAS eLearning LMS before v7.30/v8.11/v9.1
ILIAS contained several cross-site scripting flaws and an insecure file upload that allowed PHP code execution. A tutor in at least one course could chain these to run code on the server.
insinuator.net
Published on insinuator.net
During my Bachelor’s thesis, I identified several XSS vulnerabilities and a PHP Code Execution vulnerability via an insecure file upload in the learning management system (LMS) ILIAS. The XSS vulnerability can be chained with the code execution vulnerability so that attackers with tutor privileges in at least one…
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 upload feature did not properly restrict file types or execution, and the XSS flaws allowed the chain to be triggered.
Impact
An attacker with tutor privileges in at least one course could execute PHP code on the server, and the XSS flaws could be chained with it.
What the attacker needed
Tutor privileges in at least one course
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.
Cross-site scripting (XSS) lets an attacker slip harmful script into a web page that other users then view. An insecure file upload means the site accepts a file it should not, and here that file could be run as code on the server. Together, someone with a limited teaching role could take over the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.