PHP iCalendar <= 2.24 Unrestricted File Upload Vulnerability
The admin interface in PHP iCalendar did not require authentication for an addupdate action, allowing a remote attacker to upload a calendar file with arbitrary content to a directory outside the web root.
karmainsecurity.com
Published on karmainsecurity.com
admin/index.php in PHP iCalendar 2.3.4, 2.24, and earlier does not require administrative authentication for an addupdate action, which allows remote attackers to upload a calendar (aka .ics) file with arbitrary content to the calendars/ directory outside the web root.
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 addupdate action in the admin script lacked an authentication check, so unauthenticated users could invoke it.
Impact
An attacker could upload a file with arbitrary content to the calendars directory, but because that directory is outside the web root the file could not be requested directly, limiting the immediate effect.
What the attacker needed
Network access to the application; no login required
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.
A part of the calendar application meant only for administrators could be used without logging in. Because of that, anyone on the internet could send a file to the server and have it saved in a folder. The file was placed outside the public website folder, so it could not be opened directly in a browser.
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.