Files
railsgoat/app/controllers/tutorials_controller.rb
T
2013-04-25 14:49:20 -04:00

55 lines
911 B
Ruby
Executable File

class TutorialsController < ApplicationController
skip_before_filter :authenticated
def index
end
def show
render "injection"
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
end
def insecure_dor
end
def csrf
@meta_code_bad = %{<%#= csrf_meta_tags %> <!-- <~ What is this for? I hear it helps w/ JS and Sea-surfing.....whatevz -->}
@meta_code_good = %{<%= csrf_meta_tags %> }
end
def misconfig
end
def crypto
end
def url_access
end
def ssl_tls
end
def redirects
end
end