Skip to content
File upload Advisory Intermediate CVE-2020-8866

Horde Groupware Webmail Edition add Page Unrestricted File Upload Arbitrary File Creation Vulnerability

The add.php script in Horde Groupware Webmail Edition fails to properly validate user-supplied data, allowing an authenticated attacker to upload arbitrary files. This could be combined with other vulnerabilities to execute code as the web server user.

Andrea Cardaci Follow

Originally disclosed on Zero Day Initiative

Medium 4.3 View original

This vulnerability allows remote attackers to create arbitrary files on affected installations of Horde Groupware Webmail Edition. Authentication is required to exploit this vulnerability.

Andrea Cardaci, on the Zero Day Initiative

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 add.php script does not validate the type or content of uploaded files before saving them.

Impact

An authenticated attacker could create arbitrary files on the server, which may lead to code execution in the context of the www-data user when combined with other vulnerabilities.

What the attacker needed

Authentication required

The fix

Horde has issued an update to correct this vulnerability.

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.

This is a file upload bug. A logged-in user can send a file to the server that the server does not check properly, so they can put any file they want on the system. On its own that may not run code, but it can be used with another bug to take over the server.

What is File upload?

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.

More by Andrea Cardaci

View all

1 more disclosed report, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.