Poor RichFaces
Two new EL injection vulnerabilities bypass the patches for earlier RichFaces flaws, allowing remote code execution in all 3.x and 4.x versions including the latest 3.3.4 and 4.5.17. An attacker can send crafted resource requests that cause arbitrary EL expressions to be evaluated.
Published on codewhitesec.blogspot.com
RichFaces is one of the most popular component libraries for JavaServer Faces (JSF). In the past, two vulnerabilities (CVE-2013-2165 and CVE-2015-0279) have been found that allow RCE in versions 3.x ≤ 3.3.3 and 4.x ≤ 4.5.3.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the resource-handling code deserialises attacker-controlled data and evaluates EL expressions without sufficient validation, and the earlier whitelist and parenthesis check can be bypassed.
Impact
An attacker could achieve remote code execution on servers running vulnerable RichFaces versions, and no official patches are expected because the project is end-of-life.
What the attacker needed
Network access to the RichFaces application; crafted request to a resource endpoint
The fix
No official fix exists; the article suggests blocking requests whose paths contain /DATA/ or org.richfaces.resource.MediaOutputResource.
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 write-up has not been written yet. The Original tab links to the source.
RichFaces is a library that helps build Java web pages. It can create images and other resources on the fly from data in a request. The old bugs let attackers sneak in code that the server would run. The new bugs get around the fixes for the old ones, so even fully updated versions can be made to run an attacker's code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.