Tag: CORS

RongYuan keyboard driver lets web pages rewrite macros, researcher says

RongYuan keyboard driver lets web pages rewrite macros, researcher says

You open a web page. Nothing pops up, nothing downloads. A few seconds later you finish typing a message, hit Enter, and a command prompt opens on your screen. You didn’t ask for it. Your keyboard did, because a web page just told it to.

That’s the demo a researcher published on December 2, 2026 against the configuration software for keyboards built by Shenzhen RongYuan Technology, an OEM whose unified driver is rebranded by brands such as Akko, Epomaker, MonsGeek, AttackShark and AJAZZ. The driver runs a small web service on your own machine, accepts commands from any website, and can write macros straight into the keyboard’s memory. There’s no patch, no CVE and, as far as I can find, no word from the vendor yet.

I rate it medium. The design flaw is real and embarrassing, and a public proof of concept exists. But the attack needs several things to line up, modern Chrome now puts a permission prompt in the way, and so far only one keyboard model has been tested.

At a glance

  • What: unauthenticated local service on 127.0.0.1:3814 in the RongYuan unified keyboard and mouse driver that reflects any website’s origin in its CORS headers.
  • CVE / CVSS: none assigned or published as of December 6, 2026. The researcher says a CVE request went to MITRE.
  • Tested: “AJAZZ Driver (R)” V2.1.91 (Electron 22.3.15) on Windows with an AJAZZ ALUX68 PLUS keyboard. Other builds and macOS are untested in public.
  • Possible reach: the driver’s device database lists 2,507 profiles across 283 brands. That’s a database count, not a list of confirmed vulnerable products.
  • Exploitation: public PoC from the researcher. No reports of use in the wild.
  • Patch: none. Vendor notification is listed as “TBD” in the researcher’s own timeline.
  • Who should care: anyone with a RongYuan-based keyboard whose driver sits in the system tray, and IT teams that let staff bring their own mechanical keyboards.

What we know

The research comes from Elvin Latifli, who publishes as RickiDevs on GitHub. His repository went public on December 2, 2026, with a README, a PoC page, a brand list and, since December 5, a PDF report. He says he found the issue in November 2026 while testing his own AJAZZ keyboard and confirmed the full chain on Windows on December 2.

Everything technical below is his claim. The repo is internally consistent, but nobody has reproduced it independently and RongYuan hasn’t commented. CyberInsider and SC Media covered it on December 3, and Italy’s SmartWorld on December 4. I found no vendor statement in any of them, or anywhere else.

The disclosure status is a bit messy. The README’s timeline says a CERT/CC report and a MITRE CVE request were both submitted in December 2026 and lists vendor notification and public disclosure as “TBD”. The disclosure timeline in the repo’s FINDINGS.md lists all four steps (CERT/CC, CVE request, vendor notification, public disclosure) as “TBD”. Meanwhile the working PoC has been public since day one. SC Media wrote that the vendor was notified through CERT/CC; CyberInsider and SmartWorld say notification was still pending. I can’t settle that from public sources, and I couldn’t find a CERT/CC vulnerability note or an NVD entry as of December 6.

One correction: the first README said the service answered with Access-Control-Allow-Origin: *. On December 5 the researcher fixed that; the wildcard came from his own Linux re-implementation, and the Windows driver instead mirrors the caller’s origin with Access-Control-Allow-Credentials: true. Either way, any site gets in.

How it works

The RongYuan driver is an Electron app. To talk to the keyboard, it exposes a gRPC-web service (protobuf messages, base64 encoded, sent as HTTP POSTs) on 127.0.0.1:3814. According to the researcher, the service is called driver.DriverGrpc and has methods such as watchDevList, which lists connected devices, and sendMsg, which passes raw 64-byte HID feature reports to the keyboard.

Two things go wrong. First, there’s no authentication at all: no session token, no nonce, nothing that separates the driver’s own window from any other caller. Second, the CORS policy (the rules that tell a browser which websites may read a server’s responses) mirrors back whatever origin asks. A web page sending these requests triggers a CORS preflight, because the content type isn’t one browsers allow by default, and by the researcher’s account the driver approves it for any origin. From then on, the page can call the keyboard API as if it were the official app.

A note on the name. The repo calls this Cross-Site WebSocket Hijacking, but there’s no WebSocket here. The PoC uses ordinary fetch() POSTs. What’s actually going on is an overly permissive CORS policy on an unauthenticated localhost service, which is cross-site request forgery aimed at your own machine. The difference matters for defenders: Google’s own write-up says the first milestone of Chrome’s Local Network Access protection doesn’t gate WebSockets, WebTransport or WebRTC yet, but it does cover fetch() requests like these.

Four-step diagram: a web page posts to the driver on 127.0.0.1 port 3814, the driver reflects the origin, a macro is written to keyboard firmware and Enter is remapped, and pressing Enter opens a command prompt.
The researcher's proof-of-concept chain, as described in the public repo. Demonstrated on one keyboard, on Windows, from a locally served page.

The PoC chain, as the researcher describes it, goes like this. The page enumerates the keyboard, writes a macro into firmware slot 0 that presses Win+R, types “cmd” and presses Enter, then remaps the Enter key to fire that macro. The next time you press Enter, a command prompt opens. A longer macro could type a real payload, running with your user’s privileges. There’s no memory-corruption bug and no privilege escalation; the “command execution” is fake keystrokes typed into your own session.

Persistence is split. The researcher says the key remap on Windows is done in software by the driver’s keyboard hook, so it disappears when the driver quits. The macro itself lives in the keyboard’s onboard memory and stays there until something overwrites it. Whether an attacker could also make the key binding stick in firmware, so it survives without the driver, hasn’t been shown.

Who is affected and how badly

The headline number, 283 brands and 2,507 device profiles, comes from the device database inside the driver. It shows how far one codebase has spread through white-label hardware (Akko alone has 214 profiles, Epomaker 121), but it doesn’t mean every one of those products ships the same vulnerable build. CyberInsider points out that some brands, Akko among them, send customers to different configuration tools depending on keyboard and firmware. Only one keyboard has actually been tested.

For a real attack, four things have to line up. The driver must be running; the researcher says it runs in the background as a system tray app, with the local service listening whether or not its window is open. The victim must open the attacker’s page. The browser must let a public website talk to 127.0.0.1. And the victim must press the remapped key, which for Enter takes seconds.

Diagram of four conditions that must line up for the attack: driver running as a tray app, victim visits the page, browser allows the page to reach localhost, victim presses the remapped key, with the defender control for each.
What has to line up for a real attack, and the control that breaks each link.

The third condition is the one people are glossing over. Chrome’s Local Network Access feature treats a request from a public site to a loopback address (127.0.0.0/8 or ::1) as a local network request and, according to Google, puts a permission prompt in front of it starting with Chrome 142. Edge, which is Chromium-based, has matching enterprise policies. The researcher’s own demo page was served locally, a point CyberInsider also makes. My reading of Google’s documentation is that a page served from localhost isn’t a public origin, so the demo wouldn’t have hit the prompt at all. So against an up-to-date Chrome, a remote attacker has to get you to click “Allow” on a prompt about finding devices on your local network. Plenty of people will click it, but it isn’t silent. I don’t have confirmed behaviour for Firefox or Safari, so I won’t guess.

That’s medium for most people. It rises if your browser is old or you’ve already granted a site loopback access.

What to do now

  1. Find out whether you’re running it. On Windows, check for a listener on the port the researcher names: Get-NetTCPConnection -LocalPort 3814 -State Listen in PowerShell, then look up the owning process ID in Task Manager. No listener on 3814 means the path the researcher tested isn’t open on that machine right now; other builds could, in principle, use a different port.
  2. Quit the driver after you configure the keyboard. SmartWorld’s advice is to right-click the tray icon and choose exit, because minimizing isn’t enough, then disable auto-start in Task Manager’s Startup tab or in the app’s settings. The researcher says the software key remap stops when the driver closes.
  3. Check your macros. Open the driver once, look at the stored macro slots, and overwrite anything you don’t recognize. The macro survives the driver closing.
  4. Keep the browser’s local network gate on. Update Chrome or Edge, and in site settings leave local network and loopback access on “Ask” or “Block”. If you’ve ever clicked “Allow” for a site you don’t fully trust, revoke it.
  5. For managed fleets, use policy rather than hope. Edge documents LocalNetworkAccessBlockedForUrls and loopback-specific policies (such as LoopbackNetworkBlockedForUrls), which let you stop public sites from reaching local endpoints. Test before you roll it out widely, since local SSO agents and dev tools can depend on loopback access.
  6. Watch for an update. When RongYuan or your keyboard brand ships a fixed driver, the fix should include origin checks and some form of authentication. If an update only changes the port, it isn’t a fix.

Detection and monitoring

There isn’t much to catch. The writes to the keyboard are HID feature reports, which Windows doesn’t log in any standard place. The payload arrives as keystrokes, so the command prompt is started by Explorer’s Run dialog exactly as if you’d typed it yourself. And loopback traffic never touches your proxy.

The one useful signal is the browser itself connecting to the driver. The official driver UI is the Electron app, not Chrome or Edge, so a normal browser process opening a connection to 127.0.0.1 on port 3814 is worth a look. If you collect Sysmon network events (Event ID 3) and your config doesn’t drop loopback connections, you can hunt for exactly that. Some EDR tools may log it as well; check what yours keeps for loopback traffic. Expect a few hits from developers who happen to run something on that port.

Beyond that, prevention beats detection: inventory machines that listen on 3814, keep public sites away from loopback by policy, and close the tray app. A CVE, CERT/CC note or vendor release would confirm the port and transport; that’s the moment to write a proper rule.

My take

This isn’t the end of the world, and the “283 brands” framing oversells it. One device was tested, from a locally served page, and Chrome now asks before a public site can reach localhost. If you’re a home user with an up-to-date browser, quitting the tray app fixes your problem today.

What bothers me is the pattern. We had this exact lesson in 2019, when the Zoom client on macOS ran a web server on localhost that any website could talk to (CVE-2019-13450). Seven years later, a driver that writes to keyboard firmware ships an API with no authentication and a CORS policy that says yes to everyone. And because the driver is white-label software, one mistake by one OEM spreads to hundreds of storefront brands, most of which probably never looked at the code they rebranded.

I also have mixed feelings about the disclosure. Publishing a working PoC while vendor notification still reads “TBD” leaves users with no patch and no vendor advice. The research is careful, and I liked the public CORS correction, but a short private window with the vendor would have cost little.

My order of operations: close the driver and turn off its auto-start, check macros once, and if you run a fleet, set Edge’s loopback policies and make sure Chrome is on version 142 or later so the prompt is in place. That last step also protects you from the next helper app that makes the same mistake, and I’m sure there will be one.

Sources