went ahead and filled in XSS
This commit is contained in:
@@ -10,9 +10,19 @@ class TutorialsController < ApplicationController
|
||||
end
|
||||
|
||||
def injection
|
||||
|
||||
end
|
||||
|
||||
def xss
|
||||
@code = %{
|
||||
<li style="color: #FFFFFF">
|
||||
<!--
|
||||
I'm going to use HTML safe because we had some weird stuff
|
||||
going on with funny chars and jquery, plus it says safe so I'm guessing
|
||||
nothing bad will happen
|
||||
-->
|
||||
Welcome, <%= current_user.first_name.html_safe %>
|
||||
</li>}
|
||||
end
|
||||
|
||||
def broken_auth
|
||||
|
||||
Reference in New Issue
Block a user