Horde Groupware Webmail Edition edit Page Directory Traversal Remote Code Execution Vulnerability
The edit.php script in Horde Groupware Webmail Edition did not properly validate a user-supplied path taken from the params[template] parameter before using it in file operations. An authenticated attacker could use this path traversal to execute local PHP files, and could combine it with other flaws to run code as the web server user.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute local PHP files on affected installations of Horde Groupware Webmail Edition. Authentication is required to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the params[template] value was passed into file operations without being validated or restricted to an allowed directory.
Impact
An authenticated attacker could execute local PHP files and, chained with other vulnerabilities, run code as the www-data user.
What the attacker needed
Valid account on the webmail install
The fix
The vendor issued an update that corrects the flaw, so the parameter should be validated and confined to permitted paths.
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 report has not been written yet. The Original tab links to the source.
Some web pages take a file name from the user and then open that file on the server. If the name is not checked, someone can point it at a different file than intended, which is called path traversal. Here that let a logged-in user make the server run a PHP script of their choosing, and PHP is the language the web application is written in.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.