You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5.3.2 Verify that output encoding is relevant for the interpreter and context required. For example, use encoders specifically for HTML values, HTML attributes, URL Parameters, HTTP headers, SMTP, and others as the context requires.
5.3.4 Verify that context-aware, preferably automated - or at worst, manual - output escaping protects against reflected, stored, and DOM based XSS.
5.3.5 Verify that any user-supplied data included in the browser's DOM or web views protects against JavaScript code execution and XSS attacks.
5.2.6 Verify that where potentially untrusted data is copied one DOM context to another, the transfer uses safe JavaScript methods, such as using innerText or JQuery .val to ensure the application is not susceptible to DOM Cross-Site Scripting (XSS) attacks.
problems
not clear what is the reason for 5.3.4 and 5.3.5. What those give extra and are not covered by 5.3.2 and 5.2.6?
based on my pen-test experience, javascript injection is one of the most widespread problem in this category and it's worth mention javascript separately in 5.3.2 or (even better) to have separate point for javascript syntax - to make clear statement for developers thate HTML injection and JavaScript injection are different problems and there is no such magic thing like XSS security hole and just one way to fix it.
merge 5.3.4 and 5.3.5 to 5.3.2 and 5.2.6 OR make requirement text clearly understandable - what is difference between those requirements
mention javascript in 5.3.2 or make additional requirement for javascript escaping/encoding (as there are separate requirement for other syntaxe - SQL, LDAP, os cmd, path, XML, ... )
The text was updated successfully, but these errors were encountered:
@elarlang Please review the various changes in here, 449 and 579, and see if it now is more about JavaScript in 5.2.6, and less duplication of XSS controls.
requirements
problems
related issues
recommendation
The text was updated successfully, but these errors were encountered: