Request vulnerable to CSRF
Four dashboard render endpoints lack anti-CSRF tokens, so an attacker could trick a logged-in user into performing unwanted actions. The report does not demonstrate a specific action or show that the attack was carried out.
Originally disclosed on HackerOne
- Disclosed after 25 hours
There are 4 instances of this issue: [+] /dashboard/panel/render/12/ [+] /dashboard/panel/render/22/ [+] /dashboard/panel/render/4/ [+] /dashboard/panel/render/6/
Issue background ==> 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 require or validate an anti-CSRF token on state-changing requests to the listed dashboard render endpoints.
Impact
An attacker could force a logged-in user to execute unwanted actions, potentially compromising user data or leading to account hijack, especially if the victim is an administrator.
What the attacker needed
Victim is logged in; victim visits attacker page or link
The fix
The application should add unique anti-CSRF tokens to all state-changing requests and validate them on the server, rejecting requests where the token is missing or incorrect.
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 are logged into a website, your browser automatically sends your session cookie with every request to that site. A cross-site request forgery (CSRF) attack tricks your browser into sending a request that changes something on the site, without you meaning to. This report says four dashboard pages do not check for a special secret token that would prove the request came from the real site, so an attacker could make your browser send such requests.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.