Summary
Step CA versions 0.30.0-rc6 and below contain an authentication flaw that allows certificates to be issued via the SCEP UpdateReq flow without proper verification of the requester.
Under the right network and configuration conditions, an attacker can obtain unauthorized certificates, undermining the trust and security of the PKI environment.
Affected context
This vulnerability affects Step CA deployments that expose the Simple Certificate Enrollment Protocol (SCEP) interface and rely on it for automated certificate issuance and renewal.
Specifically, the SCEP UpdateReq operation is not sufficiently protected by authentication or trust checks, allowing unauthenticated entities in reachable networks (e.g., internal segments, VPNs, or misconfigured external endpoints) to request and obtain certificates that appear valid within the affected PKI hierarchy.
Exploit preconditions
- Attack surface: SCEP endpoint of Step CA (network-accessible SCEP interface).
- Required access: Network access to the SCEP service; no valid credentials or enrollment secrets are required for the vulnerable flow.
- Trigger point: Submission of a specially crafted SCEP
UpdateReqmessage that leverages the missing or incomplete authentication checks to obtain a certificate. - Why exploitation is possible: The authorization logic tied to the SCEP
UpdateReqpath does not consistently verify the requester's identity or enrollment eligibility, allowing the CA to treat untrusted requests as legitimate and issue certificates.
Why this happens
The core issue is an improper authentication and authorization check on the SCEP UpdateReq certificate issuance path.
Instead of enforcing strong identity verification, policy evaluation, or proof-of-possession tied to an authenticated principal, the implementation allows certain SCEP update requests to proceed without confirming that the requester is a legitimate, previously enrolled or otherwise authorized entity.
This maps primarily to CWE-287 (Improper Authentication), with aspects of CWE-295 (Improper Certificate Validation) in that the SCEP transaction and certificate issuance logic do not correctly distinguish between trusted and untrusted actors.
At a design level, the SCEP update mechanism is treated as trusted input, and the CA behavior assumes that any UpdateReq is coming from a valid client, which breaks the expected trust model in PKI workflows.
Potential impact
- Attackers may obtain valid certificates for arbitrary key pairs under the affected CA.
- Unauthorized certificates can be used to impersonate internal services, APIs, or infrastructure components.
- Man-in-the-middle (MitM) attacks against TLS-protected services may become feasible within environments that trust the compromised CA.
- Unauthorized client certificates could allow access to mTLS-protected services or admin interfaces.
- Long-term erosion of trust in the PKI hierarchy, potentially requiring revocation and re-issuance of large numbers of certificates.
General mitigation guidance
Mitigation should focus on tightening authentication and authorization around SCEP-based issuance and reducing the implicit trust placed in automated enrollment channels.
Recommended defensive patterns include:
- Strong SCEP enrollment controls: Require secrets, pre-shared keys, or equivalent enrollment credentials for all SCEP operations, including update/renewal flows.
- Policy-driven issuance: Enforce certificate issuance policies that validate requester identity, key usage, and subject constraints before any certificate is granted.
- Segmentation of CA interfaces: Restrict access to SCEP endpoints to trusted network segments or dedicated enrollment gateways, avoiding broad exposure.
- Least-privilege CA design: Use separate intermediates or profiles for different device and service classes to limit blast radius if an enrollment path is abused.
- Short-lived certificates and automated rotation: Reduce the window of impact for any mistakenly issued certificate by favoring low-lifetime certs and automated renewal under stricter controls.
- Defense in depth for service authentication: Combine certificate-based authentication with additional factors (e.g., application-layer auth or service identity checks) where feasible, so a single certificate is not the sole gatekeeper.
How teams detect issues like this
To detect and monitor for this class of issue, organizations can adopt a combination of code-level, operational, and policy-based approaches:
- Static analysis and code review:
- Look for SCEP and other enrollment endpoints where certificate issuance is triggered without robust authentication checks.
- Flag flows where
UpdateReq-like operations can issue or renew certificates without verifying a bound identity or prior enrollment. - Review authorization logic paths ensuring that all issuance operations are tied to explicit policy decisions.
- Audit logging and anomaly detection:
- Enable detailed CA logs for all SCEP operations, including client identifiers (if available), requested subjects, and issuing profiles.
- Monitor for spikes in certificate issuance, unusual subject names, or new requesting IP ranges.
- Use SIEM or log analytics tools to alert on patterns such as many certificates being issued to the same unknown source or atypical times.
- PKI inventory and validation:
- Regularly inventory issued certificates and compare them against known devices, services, and identity sources.
- Periodically review for certificates with unexpected subject/sAN values, key usage, or profiles that do not match documented deployment patterns.
- Policy enforcement and configuration scanning:
- Use configuration management or compliance checks to ensure SCEP endpoints are restricted to expected networks and protected with enrollment secrets or ACLs.
- Integrate automated security review tools into CI/CD to catch future changes that weaken authentication for issuance endpoints.

