Imperfect CSRF To Overwrite Server Config at /go/admin/restful/configuration/file/POST/xml
The server configuration endpoint accepted cross-site requests without verifying the request's origin, so an attacker could add content to the server's cruise-config.xml. This could give the attacker complete control of the server, though exploitation required the admin to be served malicious HTML and the attacker to have a copy of a historical config file.
- Fixed in 13 days
- Disclosed after 18 months
Summary by the program
The /go/admin/restful/configuration/file/POST/xml path is vulnerable to Cross-Site Request Forgery that can result in an unauthorized user adding to the server cruise-config.xml and gaining complete control of the server. Successful exploitation is made difficult by the need for the admin to be served malicious HTML and for the attacker to have a copy of historical config, such as the nearly-empty empty placeholder file that gets initially generated upon install.
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 configuration endpoint did not require a CSRF token or otherwise verify that the request came from the application itself.
Impact
An attacker could add content to the server configuration and potentially gain complete control, but only if the admin was served malicious HTML and the attacker had a copy of a historical config file.
What the attacker needed
Admin is served malicious HTML; attacker has a historical config copy
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.
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 meaning to. Here, an admin visiting a malicious page could have their browser silently send a request that changes the server's configuration file. That file controls how the server behaves, so changing it can hand the attacker control.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.