electric is vulnerable to Authentication Bypass
86
High Risk
Electric's sync service authenticates requests to the /v1/shape API by comparing the raw request path against the exact string /v1/shape, but the router also accepts normalized variants such as /v1/shape/, /v1//shape, and percent-encoded forms like /v1/%73hape. Requests using those alternate paths reach the shape endpoint without the configured API secret being validated, letting unauthenticated callers read shape data and issue GET, POST, HEAD, and DELETE operations. Within the limits of the replication configuration and database privileges, such requests can also add tables to publications or change REPLICA IDENTITY settings. The fix authenticates against the normalized conn.private[:plug_route] set during route matching so every path variant is checked.
You are affected if you are using a version that falls within the vulnerable range and your deployment configures an API secret to protect the shape API.
electric is vulnerable to Authentication Bypass in versions 1.0.0 - 1.7.11.
Upgrade the electric library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.