Skip to content
RCE Disclosed report Intermediate CVE-2017-0913

Unrestricted File System Access via Twig Template Injection on dev-ucrm-billing-demo.ubnt.com

A researcher found that a Twig template injection on a demo host allowed local file inclusion, letting an attacker read files on the server. The impact was limited because the environment was a Docker container and the attacker needed admin credentials.

Tommy DeVoss Follow

Originally disclosed on HackerOne

High 8.7 View original
  • Triaged in 17 hours
  • Fixed in 27 days
  • Paid in 5 days
  • Disclosed after 2 months

Summary by the program

The researcher found a Local File inclusion vulnerability, this could be exploited by using Twig templates available on the system. This vulnerability only have the potential to affect dev-ucrm-billing-demo.ubnt.com, although is limited by the restricted environment (docker) with don't allow any sensitive information leak.

This vulnerability don't have any impact and don't offer any threat for regular installations of UCRM, because the attacker need admin credentials, also the environment is isolated by a docker container.

The original report as published on HackerOne, by dawgyg. 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 application exposed Twig templates that could be abused to achieve local file inclusion.

Impact

The impact was limited: the attacker needed admin credentials and the Docker container restricted access, so no sensitive information was leaked and regular installations were not affected.

What the attacker needed

Admin credentials; demo host only; Docker container environment

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.

Twig is a template engine that builds web pages from templates. If a user can control what goes into a template, they may be able to make the server run their own template code, which can read files on the machine. Here the researcher could read local files, but only on a demo server inside a container, and only after logging in as an admin.

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 Tommy DeVoss

View all

4 more disclosed reports, best first.

More from Ubiquiti Inc.

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.