[Admin Panel] CSRF to resume/pause runner
The admin panel endpoints that pause or resume a CI runner accepted requests without a CSRF token, so a page controlled by an attacker could make a logged-in administrator toggle a runner's state. The text only claims the state change itself, not any wider compromise.
- Triaged in 33 hours
- Fixed in 2.1 years
- Paid in 7 months
- Disclosed after 2.2 years
Hi,
Just found a CSRF in admin panel of gitlab instance to pause/resume runner.
Steps to reproduce
- http://{gitlab_instance}/admin/runners/:runner_id/resume
- http://{gitlab_instance}/admin/runners/:runner_id/pause
Video:
███████
password: ██████████
Impact
Just found a CSRF in admin panel of gitlab instance to pause/resume runner.
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 pause and resume admin actions were reachable by a simple GET request and lacked a per-request anti-CSRF token check.
What the attacker needed
Victim is a logged-in admin; victim visits attacker 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 are logged in to a site, your browser automatically sends your session cookie with every request to that site. A cross-site request forgery (CSRF) trick makes your browser send a state-changing request to the site from a page the attacker controls, so the site thinks you asked for it. Here the pause and resume actions for a build runner had no check that the request really came from the admin panel.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.