add qhelp file

This commit is contained in:
thiggy1342
2022-07-14 00:11:25 +00:00
committed by GitHub
parent 2cc703387b
commit ae634367c9

View File

@@ -0,0 +1,23 @@
<!DOCTYPE qhelp PUBLIC
"-//Semmle//qhelp//EN"
"qhelp.dtd">
<qhelp>
<overview>
<p>
Manually checking the HTTP request verb inside of a controller method can lead to
CSRF bypass if GET or HEAD requests are handled improperly.
</p>
</overview>
<recommendation>
<p>
It is better to use different controller methods for each resource/http verb combination
and configure the Rails routes in your application to call them accordingly.
</p>
</recommendation>
<references>
<p>
See https://guides.rubyonrails.org/routing.html for more information.
</p>
</references>
</qhelp>