+ Reply to Thread
Results 1 to 5 of 5
Like Tree3Likes
  • 3 Post By [s]

Thread: Twitter [Mobile] Account Settings Cross Site Scripting and Multiple Html Injection Share/Save - My123World.Com!

  1. #1
    [s]
    [s] is offline
    Security Researcher [s] will become famous soon enough [s]'s Avatar
    Join Date
    Nov 2010
    Posts
    187
    Blog Entries
    2
    Thanks
    62
    Thanked 53 Times in 30 Posts

    Twitter [Mobile] Account Settings Cross Site Scripting and Multiple Html Injection



    ——————————————————————
    0x1 Title: Twitter [Mobile] Account Settings Cross Site Scripting and Multiple Html Injection Vulnerability
    0x2 Script Link: https://mobile.twitter.com/settings
    0x3 Author: Sandeep kamble
    0x4 Reported: December 28 ,2011
    0x5 Vulnerability Fix date : Jan 05 ,2012
    0x6 Public Release: Jan 05 ,2012
    0x7 Browser : FireFox , IE
    0x8 OS : Win7 , Ubantu
    ——————————————————————


    Description of script:

    Twitter providing features to protect the user privacy, using account setting you can protect your Tweets, you can change Username, you can change your password, and you can change your E-mail address.

    Affected script URL:
    Code:
    URL #1: https://mobile.twitter.com/settings/screen_name
    URL #2: https://mobile.twitter.com/settings/name


    Vulnerability Description:
    1) Cross Site Scripting Vulnerability ( Twitter mobile is infected User Side XSS as well as it was protected to click jacking ):

    Cross-Site Scripting attack is type of injection, in which malicious java scripts are injected into the web sites dynamic page.

    2) HTML Injection Vulnerability (Twitter mobile is infected User Side , one html injection was stored )

    HTML Injection is a type of injection, in which malicious HTML Code injected into the web sites Pages.

    Exploit Description + Proof of Concept:

    Code:
    URL #1: https://mobile.twitter.com/settings/name
    Title #1: Stored HTML Injection Vulnerability

    In the above URL there is one input box to change the name. The HTML code of the input box is following.

    As the twitter allow only 20 Characters in the name filed.
    If we try executing the malicious HTML Code then HTML code look like as follows

    Name:  image001.png
Views: 5106
Size:  7.2 KB

    Code:
    HTML Code : “><marquee>sandeep
    Name:  image003.png
Views: 5089
Size:  7.4 KB

    Malicious HTML code successfully executed with correct syntax of input box. As following show the output of the above input box code execution.

    Name:  image005.jpg
Views: 5222
Size:  10.0 KB

    Code:
    URL #2: https://mobile.twitter.com/settings/name
    Title #2: Cross Site Scripting and HTML Injection Vulnerability


    In the above URL there is one input box to change the username. The html code of the input box is following.

    In the input box we can execute the JAVA script as well as html Code so that is vulnerable to Cross site scripting and HTML Code injection Vulnerability

    Name:  image008.jpg
Views: 5072
Size:  10.6 KB

    Code:
    JS : “><script>alert(document.domain)</script>
    Name:  image009.png
Views: 5075
Size:  7.7 KB

    Malicious JS code successfully executed with correct syntax of input box. As following show the output of the above input box code execution.

    Name:  image012.jpg
Views: 5203
Size:  18.3 KB

    Similarly we can execute HTML Code but it is not stored HTML Code Execution.

    Name:  image013.jpg
Views: 5162
Size:  13.7 KB

    Check Out Video Here



    Countermeasure

    1) Determine whether HTML output includes input parameters
    2) In short perform input sensitization

    Warm Regards,
    Sandeep Kamble
    www.sandeepkamble.com
    Last edited by [s]; 01-05-2012 at 04:27 PM.
    AnArKI, fb1h2s and prashant_uniyal like this.

    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

  2. The Following 4 Users Say Thank You to [s] For This Useful Post:

    abhaythehero (01-05-2012), AnArKI (01-05-2012), d4rkd4wn (01-05-2012), fb1h2s (01-05-2012)

  3. #2
    Super Administrator AnArKI has a spectacular aura aboutAnArKI has a spectacular aura aboutAnArKI has a spectacular aura about AnArKI's Avatar
    Join Date
    Jul 2010
    Location
    London
    Posts
    501
    Blog Entries
    1
    Thanks
    180
    Thanked 169 Times in 86 Posts
    Sandeep u r on a roll!!!.....excellent find

  4. #3
    Web Security Consultant amolnaik4 is just really niceamolnaik4 is just really niceamolnaik4 is just really niceamolnaik4 is just really niceamolnaik4 is just really nice amolnaik4's Avatar
    Join Date
    Jul 2011
    Location
    webr00t
    Posts
    269
    Blog Entries
    3
    Thanks
    24
    Thanked 179 Times in 100 Posts
    very nice sandeep....i'm sure you'll find a space at Twitter / Security
    Congrats!!

  5. #4
    [s]
    [s] is offline
    Security Researcher [s] will become famous soon enough [s]'s Avatar
    Join Date
    Nov 2010
    Posts
    187
    Blog Entries
    2
    Thanks
    62
    Thanked 53 Times in 30 Posts
    @Ankari thanks a lot ... @amol sir , yes i am waiting for it ..

    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

  6. #5
    Security Analyst prashant_uniyal has a spectacular aura aboutprashant_uniyal has a spectacular aura about prashant_uniyal's Avatar
    Join Date
    Jul 2010
    Location
    localhost
    Posts
    498
    Blog Entries
    8
    Thanks
    248
    Thanked 104 Times in 55 Posts
    Great One bro..!!! Congrats
    The three great essentials to achieve anything worth while are: Hard work, Stick-to-itiveness, and Common sense. - Thomas A. Edison
    __________________________________________________ _____________________

    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts