File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
ruby/ql/src/queries/security/cwe-352 Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 6161 Note this remains true even in Rails version 5 and later: these versions
6262 automatically run <code >protect_from_forgery with: :exception</code >
6363 by default, but manually calling <code >protect_from_forgery</code > with
64- no <code >with</code > argument will still downgrade protection to null the
65- session rather than raise an exception.
64+ no <code >with</code > argument will still downgrade protection to provide an
65+ empty session rather than raise an exception.
6666 </p >
6767
6868 </example >
Original file line number Diff line number Diff line change 4343 <code >protect_from_forgery with: :exception</code > can help to avoid this
4444 by raising an exception on an invalid CSRF token instead.
4545
46- Note that Rails version 5 and later
46+ Note that Rails versions 5 and later
4747 automatically run <code >protect_from_forgery with: :exception</code >
4848 by default, but manually calling <code >protect_from_forgery</code > with
49- no <code >with</code > argument will downgrade protection to null the
49+ no <code >with</code > argument will downgrade protection to provide an empty
5050 session rather than raise an exception.
5151 </p >
5252 </recommendation >
You can’t perform that action at this time.
0 commit comments