Vulnerability In EU Cross-Border Authentication Software (eIDAS Node)
The eIDAS-Node software used for cross-border authentication in the EU had a flaw in its SAML signature verification that allowed an attacker to bypass trust checks and impersonate any EU citizen. The vulnerability was in how the issuer certificate was retrieved and validated, enabling an attacker to send a manipulated SAML response and authenticate as anyone.
sec-consult.com
Published on sec-consult.com
During a short crash test SEC Consult identified a critical vulnerability in the eIDAS-Node software component that could allow an attacker to impersonate any EU citizen.
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
Likely, the code that verifies the trust of the certificate used to sign a SAML response only matched the issuer name (DN) of the certificate against trusted certificates, without verifying the certificate's signature against the issuer's public key, allowing an attacker to create a certificate with an arbitrary public key that appears to be issued by a trusted entity.
Impact
An attacker could impersonate any EU citizen and authenticate as them to services across the EU, potentially accessing sensitive information or performing actions on their behalf.
What the attacker needed
Access to a vulnerable eIDAS-Node; ability to send SAML messages
The fix
The vulnerability was fixed in eIDAS-Node version 2.3.1, which was released and distributed to Member States.
How it was found
- The attacker creates a certificate with an arbitrary public key whose Issuer DN matches the Subject DN of a trusted certificate.
- The attacker sends a manipulated SAML response to an eIDAS-Connector, signed with the attacker's certificate.
- The vulnerable code retrieves the issuer certificate from the trust store by matching the Issuer DN, without verifying the signature.
- The trust path is established and the entity certificate is accepted, allowing the attacker to authenticate as any user.
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.
eIDAS is a system that lets EU citizens use their national digital IDs to log in to services in other EU countries. The software that connects these national systems had a mistake in how it checked the digital signatures that prove who sent a message. An attacker could trick the system into accepting a fake identity, so they could pretend to be any EU citizen.
What is OAuth / SSO?
Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.