Login CSRF in Secret.ly
The login endpoint accepted a JSON POST without any anti-CSRF token, so a third-party page could submit a login request on a victim's behalf. The author also notes the same endpoint could be brute-forced, though no exploitation of either issue is shown.
- Triaged in 40 days
- Fixed in 48 days
- Disclosed after 52 days
POST /_/login HTTP/1.1 Host: www.secret.ly User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:28.0) Gecko/20100101 Firefox/28.0 Accept: application/json, text/javascript, /; q=0.01 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Content-Type: application/json; charset=UTF-8 X-Requested-With: XMLHttpRequest Content-Length: 55 Connection: keep-alive Pragma: no-cache Cache-Control: no-cache {"Login":"[email protected]","Password":"user_password_here"}
As you can see that this form does not contain any CSRF token,So it is vulnerable to Login CSRF attack.And also note that the login request is prone to bruteforce attack.You might want to impose some extra layer of security to prevent bruteforce attacks on SECRET.LY
Read this for more information about the requirement of CSRF tokens on login forms.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the login handler authenticated purely on the submitted credentials and never checked a per-session anti-CSRF token or origin.
Impact
The login form lacks a CSRF token, so the author says it is vulnerable to login CSRF; the endpoint is also said to be open to brute force.
What the attacker needed
Victim submits a login request
The fix
The author suggests adding an extra layer of security to prevent brute-force attacks on the login endpoint.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you log in, your browser sends your username and password to the site. The login form has no CSRF token, so the author says it is vulnerable to login CSRF.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.