(no title)
jewel | 1 year ago
unless person_id =~ /^\d+$/
abort "Bad person ID"
end
sql = "select * from people where person_id = #{person_id}"
In addition to injection attacks, this also can bite people when parsing headers, where a bad header is allowed to sneak past a filter.
mnau|1 year ago
https://devcraft.io/2021/05/04/exiftool-arbitrary-code-execu...
jfhufl|1 year ago
halostatue|1 year ago
The second line should always be no, which if you use `\A\d+\z`, it will be.
jfhufl|1 year ago
dr-smooth|1 year ago