Update sectraining.md
This commit is contained in:
parent
b6f5cfd8f3
commit
901746abcb
1 changed files with 2 additions and 0 deletions
|
|
@ -19,6 +19,8 @@ To prevent non-HTML HTTP responses from embedding data, that might be dangerousl
|
||||||
JavaScript frameworks (e.g., Angular, React) or server-side templating systems (e.g., Go Templates) have robust built-in protections against Reflected Cross-Site Scripting.
|
JavaScript frameworks (e.g., Angular, React) or server-side templating systems (e.g., Go Templates) have robust built-in protections against Reflected Cross-Site Scripting.
|
||||||
|
|
||||||
#### Java
|
#### Java
|
||||||
|
|
||||||
|
|type| java |
|
||||||
|---|---|
|
|---|---|
|
||||||
|HTML Body <div>USER-CONTROLLED-DATA</div> | `Encode.forHtml` |
|
|HTML Body <div>USER-CONTROLLED-DATA</div> | `Encode.forHtml` |
|
||||||
|HTML Attribute <input type="text" value="USER-CONTROLLED-DATA"> `Encode.forHtmlAttribute`|
|
|HTML Attribute <input type="text" value="USER-CONTROLLED-DATA"> `Encode.forHtmlAttribute`|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue