Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulnerability: Path Traversal attack #474

Closed
lolczak opened this issue Apr 28, 2020 · 0 comments
Closed

Vulnerability: Path Traversal attack #474

lolczak opened this issue Apr 28, 2020 · 0 comments
Assignees
Labels
--breaking Important: a change that will break a public API or user-facing behaviour p-high Should be completed in the next sprint

Comments

@lolczak
Copy link
Contributor

lolczak commented Apr 28, 2020

Using double dots as a segment of a path is possible to perform path traversal attack and access /etc/passwd.
Below there is a sample message used to perform 'dot-dot-slash' attack against the Language Server:

  {
    "jsonrpc": "2.0",
    "method": "file/read",
    "id": 2,
    "params": {
      "path": {
        "rootId": "de938b11-2f22-431b-bc81-9a3e41282f55",
        "segments": [
          "..",
          "..",
          "..",
          "..",
          "..",
          "etc",
          "passwd"
        ]
      }
    }
  }
@iamrecursion iamrecursion transferred this issue from another repository Jun 23, 2020
@joenash joenash added Category: Backend --breaking Important: a change that will break a public API or user-facing behaviour p-high Should be completed in the next sprint labels Jun 23, 2020
@iamrecursion iamrecursion mentioned this issue Jun 24, 2020
26 tasks
@wdanilo wdanilo closed this as completed Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
--breaking Important: a change that will break a public API or user-facing behaviour p-high Should be completed in the next sprint
Projects
None yet
Development

No branches or pull requests

4 participants