Skip to content
RCE Disclosed report Beginner CVE-2017-1000486

RCE in ██████ subdomain via CVE-2017-1000486

The application ran an outdated version of the PrimeFaces library that is affected by a known deserialisation flaw, allowing an unauthenticated attacker to run commands on the server. The reporter demonstrated command execution as the tomcat user using a public proof-of-concept tool.

skarsom Follow

Originally disclosed on HackerOne

  • Triaged in 11 hours
  • Fixed in 3 months
  • Disclosed after 3 months

Summary: The application at ████████/ftn-Website/ uses primefaces 5.3 but not 5.3.8, making it vulnerable to unauthenticated RCE CVE-2017-1000486.

Step-by-step Reproduction Instructions

  1. Get the publicly available POC for this vulnerability here: https://github.com/pimps/CVE-2017-1000486
  2. Execute: python primefaces.py ███/ftn-Website/ -c id
  3. Success: uid=91(tomcat) gid=91(tomcat) groups=91(tomcat) context=system_u:system_r:tomcat_t:s0

Product, Version, and Configuration (If applicable)

primefaces 5.3

Suggested Mitigation/Remediation Actions

Update primefaces.

Impact

An unauthenticated, 3rd-party attacker or adversary can execute remote code on restsvr1.ftn.research.usafa.edu as the unix tomcat user. Note that this service uses a DoD IP, suggesting an attacker could potentially pivot elsewhere afterwards.

The original report as published on HackerOne, by skarsom. 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 an outdated PrimeFaces library (5.3 rather than a patched release) containing a known unsafe deserialisation flaw.

Impact

An unauthenticated attacker could execute remote code on the server as the tomcat user, and the reporter suggests the host could potentially be used to pivot further.

What the attacker needed

Network access to the target path; public PoC tool

The fix

The library should be updated to a patched version.

How it was found

  1. Obtain the public proof-of-concept tool for the vulnerability.
  2. Run the tool against the target path with a command to execute.
  3. Observe the command output confirming code execution as the tomcat 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.

PrimeFaces is a helper library for Java web apps. An old version of it had a flaw where a specially crafted request could make the server run code chosen by the attacker, without needing to log in. Here the tester used a ready-made tool to show that a simple command ran on the server.

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 skarsom

View all

5 more disclosed reports, best first.

More from U.S. Dept Of Defense

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.