Skip to content
CSRF Disclosed report Intermediate

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.

4cad Follow

Originally disclosed on HackerOne

  • 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.

The original report as published on HackerOne, by 4cad. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More by 4cad

View all

4 more disclosed reports, best first.

More from GoCD

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.