Skip to content
Access control Disclosed report Intermediate

Compromising Atlassian Confluence (team.uberinternal.com) via WordPress (newsroom.uber.com)

Pages on an internal Atlassian Confluence instance loaded a script from a WordPress site hosted externally, so anyone who could modify that script on the WordPress host could run code in the browsers of logged-in Confluence users. The author shows this could be used to create a new Confluence user with an attacker-chosen password, though only if an administrator later enters the user management area.

jouko Follow

Originally disclosed on HackerOne

  • Triaged in 31 hours
  • Fixed in 31 hours
  • Disclosed after 32 days

This issue has some relevance to most of my previous submissions so I thought it's clearer if I open a new ticket about it.

I understood you've intended the various *.uber.com WordPress sites to be isolated so that compromising them wouldn't impact Uber's internal network or user data. This has been the main reason why you've assessed the WP vulnerabilities as low risk. However, it looks like to me compromising the newroom.uber.com site hosted at WPEngine opens a trivial way to an attacker to compromise team.uberinternal.com too.

Many (possibly most or all) pages on the said Atlassian Confluence environment refer a script hosted on newsroom.uber.com. For example on the 404 error page:

HTML
<script src="https://newsroom.uber.com/wp-content/uploads/adrum.js"></script>

An attacker exploiting a vulnerability on newsroom can modify the adrum.js file. I've previously demonstrated controlling files under the webroot.

Any injected script would be evaluated for Uber employees logged on Confluence. For instance, this example script (tested on my local test Confluence) appended in adrum.js would create a new Confluence user with a password chosen by the attacker:

JavaScript
(function(){
var token=AJS.Meta.get('atl-token');
var x=new XMLHttpRequest();
x.open('POST','/admin/users/docreateuser.action');
x.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
x.send('atl_token='+token+'&username=attacker&fullName=foo&[email protected]&password=new&confirm=new');
})();

User management in Confluence has an additional security measure: an admin password is asked before allowing the operation. However, the injected script would attempt to create the user on every pageload, and if an administrator enters the user management legitimately any time, the request succeeds.

Of course, this is merely one simple example of what the injected script could do.

The original report as published on HackerOne, by jouko. 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 internal Confluence instance included a third-party script from an externally hosted WordPress site, creating a cross-origin script dependency that trusted the external host's content.

Impact

An attacker who can alter the external script could run code in the browsers of logged-in Confluence users and, if an administrator later enters user management, create a new account; the text notes an admin password is otherwise required.

What the attacker needed

Control of the WordPress site's files; victim is logged in to Confluence; admin enters user management for account creation

How it was found

  1. Gain the ability to modify files under the WordPress site's webroot (shown in earlier reports).
  2. Modify the adrum.js file served from that site.
  3. Have a logged-in Confluence user load a page that references the script.
  4. The injected script runs in the Confluence origin and can act as the user.

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.

A website can pull in a small program (a script) from another website, and the visitor's browser runs it as if it belonged to the first site. Here an internal company wiki loaded such a script from a public blog site, so whoever controls the blog could slip in their own code. That code then runs inside the wiki for any employee who is logged in, which is why it matters.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by jouko

View all

13 more disclosed reports, best first.

More from Uber

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.