This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org

Difference between revisions of "CRV2 RevCodeStoredAntiPatterndotNET"

From OWASP
Jump to: navigation, search
(Created page with "=Ruby On Rails Stored Anti-pattern= Ruby on rails, version 3.0 has an in built function to validate input, especially any attempt to submit XSS code, however, if the develope...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
=Ruby On Rails Stored Anti-pattern=
+
For Anti-patterns regarding this section, check the following chapters
  
Ruby on rails, version 3.0 has an in built function to validate input, especially any attempt to submit XSS code, however, if the developer decides to bypass this validation mechanism, by passing variables to the front end with tags intact, the developer will change  the .erb file (ruby markup)with the following (similar) code.
+
https://www.owasp.org/index.php/Overall_approach_to_content_encoding_and_anti_XSS
  
  <%= raw @product.name %> 
+
https://www.owasp.org/index.php/CRV2_FrameworkSpecIssuesASPTop10
  <%= @product.name.html_safe %>  These are examples of how NOT to do it!
 
  <%= content_tag @product.name %>
 
  
Unfortunately, any field that uses raw like this will be a potential XSS target
+
https://www.owasp.org/index.php/CRV2_FrameworkSpecIssuesdotNetMVC
 
 
==Reference==
 
https://www.owasp.org/index.php/Ruby_on_Rails_Cheatsheet
 

Latest revision as of 20:52, 3 May 2014

For Anti-patterns regarding this section, check the following chapters

https://www.owasp.org/index.php/Overall_approach_to_content_encoding_and_anti_XSS

https://www.owasp.org/index.php/CRV2_FrameworkSpecIssuesASPTop10

https://www.owasp.org/index.php/CRV2_FrameworkSpecIssuesdotNetMVC