Cross-site Scripting (XSS) - Reflected in craigk5n/webcalendar

Valid

Reported on

Oct 1st 2021


Description

Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into websites. An attacker can use XSS to send a malicious script to an unsuspecting user. The end user’s browser has no way to know that the script should not be trusted, and will execute the script.

https://github.com/craigk5n/webcalendar/ is vulnerable to XSS as shown below:

Proof of Concept

Vuln variable: $eType = getgetvalue ('eType'); Snippet:

<form action="edit_entry_handler.php" method="post" name="editentryform" '
   . 'id="editentryform">
      <input type="hidden" name="eType" value="' . $eType . '" />'

Login to webcalendar In a browser visit the following URL:

http://localhost/webcalendar-master/edit_entry.php?eType=1%22%3E%3Csvg/onload=alert(/XSS/)%3E

Impact

Because it thinks the script came from a trusted source, the malicious script can access any cookies, session tokens, or other sensitive information retained by the browser and used with that site. These scripts can even rewrite the content of the HTML page.

Z-Old
8 months ago

Admin


Hey hitisec, I've emailed the maintainers for you.

We have contacted a member of the craigk5n/webcalendar team and are waiting to hear back 8 months ago
Craig Knudsen validated this vulnerability 7 months ago
hitisec has been awarded the disclosure bounty
The fix bounty is now up for grabs
Craig Knudsen
7 months ago

Maintainer


Working on fix, Should be ready in a week or so in next release.

Craig Knudsen
3 months ago

Maintainer


Fix is in bootstrap-ui branch and will be included in next release.

Jamie Slome
3 months ago

Admin


Thanks for the heads up!

Craig Knudsen
3 months ago

Maintainer


The fix for this is now included in the WebCalendar v1.9.0 release.

Craig Knudsen confirmed that a fix has been merged on d9729b 3 months ago
Craig Knudsen has been awarded the fix bounty
edit_entry.php#L114 has been validated
to join this conversation