`Title: HumHub Modules Mail v0.5.8
Author: Morten Nørtoft, Kenneth Jepsen, Mikkel Vej
Date: 2014/10/31
Download: https://github.com/humhub/humhub-modules-mail
Contacted authors: 2014/10/15
----------------------------------------------------------
Description: "Private messaging system to communicate with one or more users."
HumHub Mail Module v0.5.8 is vulnerable to an XSS attack.
Vulnerable file: /views/mail/index.php
Example of vulnerable code:
selectEntry(<?php echo $_GET['id']; ?>);
This is vulnerable because the GET parameter 'id' is not getting sanitized
PoC:
If a logged in user clicks the following link, the injected javascript is executed:
humhub.example/index.php?r=mail/mail/index&id=function%28%29{%20alert%28document.cookie%29;%20return%201;%20}%28%29
## Solution
Update to version 0.5.9.
`
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation