Description about xss payload and literacy

Source: Internet
Author: User

0x01 for constructing get and post requests, all operations on the web can be completed as long as you have get or post requests. As mentioned in this http protocol, for the rooster side, allows the browser to send requests using javascript

Var img = document. createElement ("img"); img. src = "http: // xxxxxxxx" document. body. appendChild (img );

 

Anyone who has learned javascript knows that this is a get request initiated through images. If you want to delete a talk or personalized signature on an sns instance, that is, after the url is followed by parameters (such as delete & id = xxx), execute this js Code (xss payload) to add or delete the function. Write another post
Var dd = document. createElement ("div"); document. body. appendChild (dd ); ddinnerHTML = '<form action = "" method = "post" id = "xss ***" name = "mbform">' + '<input type = "hidden" value = "***" name = "***"/> '+' <input type = "text" value = "test" name = "mb_text"/> '+' </form> 'document. getElementById ("xss ***"). submit ();

Er... This is a post request submitted by a form that I am writing in yy. the result after execution is probably to submit and add an article or publish a message like a signature. Therefore, xss does not only hijack cookie sessions, but can directly operate on the front-end if you cannot log on to the background (for example, set http only) to achieve your purpose, adding or deleting messages is only one of them. Others can also read user data and obtain the real ip address of the target machine. Write it here for the time being, and sort out the next content of the article as soon as possible.
Next article: http://www.bkjia.com/Article/201305/215715.html

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.