4.1.4
13 years ago
4 years ago
Package is deprecated
Known vulnerabilities in the ecstatic package. This does not include vulnerabilities belonging to this package’s dependencies.
Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for freeVulnerability | Vulnerable Version |
---|---|
ecstatic is a simple static file server middleware. Use it with a raw http server, express/connect or on the CLI. Affected versions of this package are vulnerable to Denial of Service (DoS). It is possible to crash a server using the package due to the way URL params parsing is handled during redirect. PoC
In the PoC the library is trying to redirect How to fix Denial of Service (DoS)? Upgrade | <4.1.4 |
ecstatic is a simple static file server middleware. Use it with a raw http server, express/connect or on the CLI. Affected versions of this package are vulnerable to Open Redirect. The package failed to validate redirects, allowing attackers to craft requests that result in an How to fix Open Redirect? Upgrade | <2.2.2>=3.0.0 <3.3.2>=4.0.0 <4.1.2 |
ecstatic is a simple static file server middleware. Use it with a raw http server, express/connect or on the CLI. Affected versions of this package are vulnerable to Denial of Service (DoS). The process of replacing null bytes in the url string is being done in a loop:
When no more Null Bytes found, the flow of the program continues. This method would work fine with a normal URL that should be relatively short, but a malicious user may craft a very long URL with a lot of Null Bytes. PoC by Checkmarx:
Slowdown:
How to fix Denial of Service (DoS)? Upgrade | <2.0.0 |
ecstatic is a simple static file server middleware. Use it with a raw http server, express/connect or on the CLI. Affected versions of this package are vulnerable to Denial of Service (DoS). The vulnerability is caused by the combination of two bugs. First, the underlying V8 engine throws an exception when processing the specially crafted date, instead of stating the date is invalid as it should. Second, the ecstatic server does not handle the exception, triggering the crash. Upgrading How to fix Denial of Service (DoS)? Upgrade | <1.4.0 |