Directory traversal vulnerability in the partition2 function in mochiweb_util.erl in MochiWeb before 2.4.0, as used in Apache CouchDB before 1.0.4, 1.1.x before 1.1.2, and 1.2.x before 1.2.1, allows remote attackers to read arbitrary files via a ..\ (dot dot backslash) in the default URI.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
http://www.securityfocus.com/bid/57313 | vdb entry |
http://seclists.org/fulldisclosure/2013/Jan/81 | mailing list |
http://secunia.com/advisories/51765 | third party advisory |
https://github.com/mochi/mochiweb/issues/92 | |
https://exchange.xforce.ibmcloud.com/vulnerabilities/81240 | vdb entry |
https://github.com/melkote/mochiweb/commit/ac2bf | patch exploit |