Metasploit web project kill all running taks CSRF CVE-2017-5244
The Metasploit web interface accepted GET requests to stop and stop_all task routes without validating a CSRF token, so an attacker could stop one or all running tasks by getting an authenticated user to load a malicious page. The tasks could not be resumed.
Published on seekurity.com
Hi Guys, I hope you all are fine and doing well. Yes you read it right, We managed to find a vulnerability in a framework used to exploit vulnerabilities! “Today is me tomorrow will be you” 🙂
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The stop and stop_all routes accepted GET requests and did not validate a CSRF token before changing state.
Impact
An attacker could stop one or all running Metasploit tasks, and the tasks could not be resumed.
What the attacker needed
Victim is authenticated to Metasploit web UI; victim loads attacker-controlled page
The fix
The routes were changed to only accept POST requests and to validate a secret token via Rails' protect_from_forgery.
How it was found
- Host a page containing JavaScript that requests the stop_all route.
- Get an authenticated Metasploit user to load that page.
- The browser sends the request and all running tasks are stopped.
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 write-up has not been written yet. The Original tab links to the source.
Cross-Site Request Forgery (CSRF) is when a malicious website makes a logged-in user's browser send a request to another site without the user knowing. Here, the Metasploit web interface allowed a simple link or script to stop all running tasks, and there was no way to resume them.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.