OWASP's HTML injection

Source: Internet
Author: User

Summary

HTML injection is a type of injection issue this occurs when a user are able to control an input point and are able to injec T arbitrary (any) HTML code into a vulnerable web page. This vulnerability can has many consequences (consequences), like disclosure of a user's session cookies that could is used to Imper Sonate (imitation) The victim, or, more generally, it can allow the attacker to modify the page content seen by the victims.

This vulnerability occurs when the user input was not correctly sanitized (disinfection) and the output is not encoded. An injection allows the attacker to send a malicious (malicious) HTML page to a victim. The targeted browser is not being able to distinguish (trust) the legit (legal) from the malicious parts and consequently would Parse and execute all as legit in the victim context.

How to Test

There is a wide range of methods and attributes that could being used to render HTML content. If These methods is provided with a untrusted input, then there is a high risk of XSS, specifically an HTML injection o NE. Malicious HTML code could was injected for example via (via) InnerHTML, which is the used to render user inserted HTML code. If strings is not correctly sanitized the problem could leads to XSS based HTML injection. Another method could be document.write ().

Test in Bwapp

  

Enter HTML code:

Input script: <script>alert (document.cookie) </script>

NC Pinball headers:

The NC went, more use later update ....

OWASP's HTML injection

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.