Created
January 8, 2024 08:20
-
-
Save Zapotek/a48728ae5b2aec5056c6e6541801bfff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'scnr/introspector' | |
require 'sinatra/base' | |
class MyApp < Sinatra::Base | |
use SCNR::Introspector, scope: { | |
path_start_with: __FILE__ | |
} | |
def noop | |
end | |
def process_params( params ) | |
noop | |
params.values.join( ' ' ) | |
end | |
get '/' do | |
@instance_variable = { | |
blah: 'foo' | |
} | |
local_variable = 1 | |
<<EOHTML | |
#{process_params( params )} | |
<a href="?v=stuff">XSS</a> | |
EOHTML | |
end | |
run! | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment