lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date: Thu, 21 Dec 2006 11:46:53 -0500
From: Netragard Security Advisories <>
To: undisclosed-recipients:;
Subject: [NETRAGARD-20061220 SECURITY ADVISORY] [@Mail
 WebMail Cross Site Scripting Vulnerabilitity]

Hash: SHA1

******************** Netragard,  L.L.C  Advisory* *******************

                     Strategic Reconnaissance Team

     -- "We make I.T. Safe."

- ----------------------------------------------------------------------
If you intend to post this advisory on your web page please create a
clickable link back to the original Netragard advisory as the contents
of the advisory may be updated.

<a href=>
Netragard Research

[About Netragard]
- ----------------------------------------------------------------------
Netragard is a unique I.T. Security company whose services are
fortified by continual vulnerability research and development. This
ongoing research, which is performed by our Strategic Reconnaissance
Team, specifically focuses on Operating Systems, Software Products and
Web Applications commonly used by businesses internationally. We apply
the knowledge gained by performing this research to our professional
security services. This in turn enables us to produce high quality
deliverables that are the product of talented security professionals
and not those of automated scanners and tools.  This advisory is the
product of research done by the Strategic Reconnaissance Team.

[Advisory Information]
- ----------------------------------------------------------------------
Contact				: Adriel T. Desautels
Researcher			: Philippe C. Caturegli
Advisory ID			: NETRAGARD-20061206
Product Name			: @ Mail
Product Version			: 4.51
Vendor Name			: Calacode
Type of Vulnerability		: XSS with filter evasion technique.
Effort				: Easy

- ----------------------------------------------------------------------
Netragard Security Note:

Source code obfuscation does not reduce the risk profile of any
application as it has no impact on vulnerabilities that might exist
within a particular application. @Mail code was obfuscated using basic
obfuscation techniques.

[Product Description]
- ----------------------------------------------------------------------
"@Mail is a feature rich Email Solution, providing a complete WebMail
interface for accessing email-resources via a web-browser or wireless

- --

[Technical Summary]
- ----------------------------------------------------------------------
@Mail does not properly sanitize email. While @Mail does pre-append
a <DEFANGED_ tag to detected HTML tags, it does not properly detect
<SCRIPT/XSS> tags. This failure makes @Mail vulnerable to Cross-site
Scripting Attacks ("XSS") via filter evasion.

[Technical Details]
- ----------------------------------------------------------------------
@Mail renders HTML emails by default. (Note: we did not find a way to
disable this feature.) The emails that are received are parsed by the
following code located in which disarms basic XSS attacks.

- -------8<------- SNIP line 626 -> 635 SNIP -------8<-------
my ( $I1I11I11I11IIIII, $I1I111I1111II1II );$_ =
$I1111II1II1II1II->II1II1I11IIII111($I1I1II1II1I11II1);if (/</)
}if (/["\047][^"\047\s]*&#x?[1-9][0-9a-f]/i) {while (
{$I1I111I1111II1II = chr($1);s/&#$1;?/$I1I111I1111II1II/g;
}while (
{$I1I111I1111II1II = chr( hex("0$1") );s/&#$1;?/$I1I111I1111II1II/gi;
- -------8<------- SNIP line 626 -> 635 SNIP -------8<-------

The above code will replace <SCRIPT> with <DEFANGED_SCRIPT>, but the
security created by the filtering process can be defeated. This is
because most web browsers assume that non-alpha-non-digit characters
are invalid after an HTML keyword and as such they are treated as
white-space. An attacker can use this knowledge to attack @Mail users.


"\s" matches any white space character (space and tab, as
well as \n and \r characters). "<SCRIPT>" is defanged by the
above sanitization however "<SCRIPT/XSS>" is not.

When "<SCRIPT/XSS>" hits a web browser it is translated back into
"<SCRIPT>" and executed by the browser. the "/XSS" becomes whitespace
to the browser. This is a very common filter evasion technique.

The following code "<SCRIPT/XSS src=//></SCRIPT>"
will then be executed when rendering an email with @Mail Webmail.

Please note that the email parser will also replace http:// by a <a
href=..., breaking up our XSS attack, but most browser will resolve
"//" as "http://" in script tags (verified in IE and Firefox)

This XSS attack will allow the attacker to retrieve the victim cookie
and impersonate the victime by replacing the sessionID in his own
cookie (verified)

[Proof Of Concept]
- ----------------------------------------------------------------------
Send an HTML email to an @Mail user with the following code embedded.


*** The code above will display an alert if vulnerable ***

Netragard's Strategic Reconnaissance Team was able to use this issue
to hijack an @Mail users session.

[Vendor Status]
- ----------------------------------------------------------------------
Vendor Notified on 12/06/06
Vendor responded after 2 more notification attempts
Vendor issued a patch.
Vendor Comments (below):

"Just to confirm the first advisery you sent, NETRAGARD-20061206, has
already been fixed and included in the recent @Mail 4.61 patch for clients."

- ---------------------
Netragard, L.L.C. assumes no liability for the use of the information
provided in this advisory. This advisory was released in an effort to
help the I.T. community protect themselves against a potentially
dangerous security hole. This advisory is not an attempt to solicit

<a href=">

Version: GnuPG v1.4.5 (Darwin)


Full-Disclosure - We believe in it.
Hosted and sponsored by Secunia -

Powered by blists - more mailing lists