
PoC for CVE-2024-23998
A Proof-Of-Concept for CVE-2024-23998 vulnerability.
Step 1) In Setting.vue, there is v-html function, so malicious JS script can run through this fucntion.
Step 2) When we install Another Redis Desktop Manager, Windows security blocks the installation. Because of that, if an attacker patches the installation file, the user won't know it has been patched.
Step 3) We can find font faq message in en.js file
Step 4) Let's patch the message that execute calc.exe\
font_faq: '1. Multiple fonts can be set<br>\
2. Font selection is orderly. It is suggested to choose English font first and then font in your language<br>\
3. When the system font list cannot be loaded in some exceptional cases, you can enter the installed font name manually.\
',
Step 5) Build the program using npm.\
npm install --platform=win32
npm start
npm run electron
Step 6) When you hover mouse cursor on Font Famliy help icon, calculator is executed.

AnotherRedisDesktopManager is a good target for attackers because it is used by many people, and it is easy to modify and redistribute files distributed as Electron applications. That's why many projects recommend not using v-html if possible. Additionally, because the nodeIntegration option is enabled, if it is maliciously modified and distributed, remote code execution is possible with the permissions of AnotherRedisDesktopManager.