Current section

Files

Jump to
sobelow lib sobelow xss html.ex
Raw

lib/sobelow/xss/html.ex

defmodule Sobelow.XSS.HTML do
use Sobelow.Finding
@finding_type "XSS.HTML: XSS in `html`"
def run(fun, meta_file) do
confidence = if !meta_file.is_controller?, do: :low
Finding.init(@finding_type, meta_file.filename, confidence)
|> Finding.multi_from_def(fun, parse_def(fun))
|> Enum.each(&Print.add_finding(&1))
end
def parse_def(fun) do
Parse.get_fun_vars_and_meta(fun, 1, :html)
end
def details() do
Sobelow.XSS.details()
end
end