<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.owasp.org/index.php?action=history&amp;feed=atom&amp;title=CRV2_RevCodeStoredAntiPatternRuby</id>
		<title>CRV2 RevCodeStoredAntiPatternRuby - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.owasp.org/index.php?action=history&amp;feed=atom&amp;title=CRV2_RevCodeStoredAntiPatternRuby"/>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=CRV2_RevCodeStoredAntiPatternRuby&amp;action=history"/>
		<updated>2026-04-10T15:40:41Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.2</generator>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=CRV2_RevCodeStoredAntiPatternRuby&amp;diff=174197&amp;oldid=prev</id>
		<title>Johanna Curiel: Created page with &quot;=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...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=CRV2_RevCodeStoredAntiPatternRuby&amp;diff=174197&amp;oldid=prev"/>
				<updated>2014-05-03T20:28:32Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;=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...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Ruby On Rails Stored Anti-pattern=&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;%= raw @product.name %&amp;gt;   &lt;br /&gt;
   &amp;lt;%= @product.name.html_safe %&amp;gt;  These are examples of how NOT to do it!&lt;br /&gt;
   &amp;lt;%= content_tag @product.name %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unfortunately, any field that uses raw like this will be a potential XSS target&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;br /&gt;
https://www.owasp.org/index.php/Ruby_on_Rails_Cheatsheet&lt;/div&gt;</summary>
		<author><name>Johanna Curiel</name></author>	</entry>

	</feed>