Skip to content
RCE Write-up Advanced

8 Out of 10 Banks in Belgium Hate This One Weird EID RCE

The Connective signing extension and its native host did not forward the origin of web page requests, allowing any site to replay activation tokens and read eID and Maestro card data without permission. The native host also returned a PIN token containing both the encrypted PIN and the decryption key, enabling PIN recovery, and allowed any site to load an attacker-supplied DLL via a relative path, leading to drive-by remote code execution.

amibeingpwned.com

Published on amibeingpwned.com

We found multiple major issues. Any site or iframe could read the user's eID and Maestro card data, and recover their eID PIN, which the binary handed back to the page inside a token that carried both the ciphertext and the key to decrypt it.

The author, on amibeingpwned.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The native host did not receive or verify the origin of requests from the extension, and it also exposed sensitive data and dangerous functionality (PIN token with embedded key, library loading) to any web page.

Impact

Any website could read eID and Maestro card data, recover the eID PIN, forge qualified signatures, and achieve drive-by remote code execution at user level, though the RCE required the user to download a file and the initial fix only added origin checks that did not address the RCE or PIN token leak.

What the attacker needed

Victim has the Connective extension and native host…; Victim visits a malicious website or iframe; Victim downloads a file (for RCE)

The fix

The library command was disabled and the pinToken was replaced with a random UUID reference, and remote origin checks were enforced to block unauthorised sites.

How it was found

  1. Obtain an activation token from a legitimate site (e.g., Doccle.be) that allows all operations.
  2. Replay the token from any web page to send commands to the native host.
  3. Use the VERIFY_PIN command with attacker-controlled dialog text to obtain a pinToken.
  4. Decode the pinToken to extract the eID PIN.
  5. Send a GET_READERS command with a library path pointing to a downloaded DLL to execute code.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This report is about a browser extension and a companion program on the computer that together let websites talk to electronic ID cards and bank cards. The program never checked which website was asking, so any website could read card data, trick the user into revealing their PIN, or even run malicious code on the computer. The problems were fixed after the researchers reported them.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.