Skip to content

Commit f01670f

Browse files
committed
Ruby: add a note to a test case
1 parent d64f8c7 commit f01670f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/ql/test/query-tests/security/cwe-598/app/controllers/users_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def login_post
1111
end
1212

1313
def login_get_cookies
14-
password = cookies[:password]
14+
password = cookies[:password] # GOOD: data sourced from cookies rather than (plaintext) query params
1515
authenticate_user(params[:username], password)
1616
end
1717

0 commit comments

Comments
 (0)