Issue:Form does not contain an anti-CSRF token
The report lists 15 pages that lack an anti-CSRF token, meaning forms on those pages do not include a unique token to verify that requests originate from the application itself. An attacker could trick a logged-in user into submitting a crafted request that performs unwanted actions, potentially leading to account compromise.
Originally disclosed on HackerOne
- Disclosed after 25 hours
============================= #Form does not contain an anti-CSRF token
There are 15 instances of this issue ==> / /Z1336 /applications/ /auth/start/ /auth/start/ /book/phabricator/article/installation_guide/ /dashboard/ /dashboard/arrange/8/ /differential/ /diffusion/ /diffusion/commit/ /diffusion/commit/query/E1D1uHPOvfuP/ /feed/query/all/ /home/menu/view/245/ /maniphest/
Issue Details ==> Cross-site Request Forgery (CSRF) is an attack which forces an end user to execute unwanted actions on a web application to which he/she is currently authenticated. With a little help of social engineering (like sending a link via email / chat), an attacker may trick the users of a web application into executing actions of the attacker's choosing. A successful CSRF exploit can compromise end user data and may allow an attacker to perform an account hijack. If the targeted end user is the administrator account, this can compromise the entire web application.
Issue remediation ==> The application should implement anti-CSRF tokens into all requests that perform actions which change the application state or which add/modify/delete content. An anti-CSRF token should be a long randomly generated value unique to each user so that attackers cannot easily brute-force it.
It is important that anti-CSRF tokens are validated when user requests are handled by the application. The application should both verify that the token exists in the request, and also check that it matches the user's current token. If either of these checks fails, the application should reject the request.
Impact
Cross-site Request Forgery (CSRF) is an attack which forces an end user to execute unwanted actions on a web application to which he/she is currently authenticated. With a little help of social engineering (like sending a link via email / chat), an attacker may trick the users of a web application into executing actions of the attacker's choosing. A successful CSRF exploit can compromise end user data and may allow an attacker to perform an account hijack. If the targeted end user is the administrator account, this can compromise the entire web application.
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 application does not include or validate a unique anti-CSRF token in state-changing requests.
Impact
An attacker could trick a logged-in user into performing unwanted actions, potentially leading to account hijack or, if the user is an administrator, compromise of the entire application.
What the attacker needed
Victim is logged in; victim visits attacker-controlled page
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 into a website, your browser stores a session cookie so the site knows who you are. A cross-site request forgery (CSRF) attack tricks your browser into sending a request to that site from another page you visit, and because your cookie is sent automatically, the site thinks the request came from you. This report says some forms on the site do not include a special secret token that would let the site tell a real form submission apart from a forged one.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.