Decidim: Push subscriptions can be abused for server-side requests
The push-subscription endpoint stores an attacker-controlled delivery URL, and the notification send path becomes an outbound-request sink when VAPID delivery is enabled. The practical result is an authenticated, stored, mostly blind SSRF primitive to arbitrary HTTPS endpoints reachable from the app server.
When VAPID delivery is enabled, the notification subscription flow stores the client-supplied push endpoint without checking that it belongs to an approved push service. The send path later passes that stored URL to WebPush.payload_send, turning the subscription into an attacker-controlled outbound request destination.
This is the source-to-sink chain:
subscription.endpoint in the JSON body posted to POST /notifications_subscriptions.params[:endpoint] is stored under user.notification_settings["subscriptions"].user.notifications_subscriptions.values returns that stored endpoint later.build_payload sets endpoint: subscription["endpoint"].WebPush.payload_send(**payload) uses the attacker-supplied endpoint as the
destination.One spec asserts that the endpoint is persisted exactly as supplied:
# decidim-core/spec/services/decidim/notifications_subscriptions_persistor_spec.rb
expect(user.notifications_subscriptions["auth_code_121"]["endpoint"]).to eq(params[:endpoint])
Another spec asserts that SendPushNotification passes the stored endpoint into WebPush.payload_send:
# decidim-core/spec/services/decidim/send_push_notification_spec.rb
first_notification_payload = {
message:,
endpoint: subscriptions["auth_key_1"]["endpoint"],
p256dh: subscriptions["auth_key_1"]["p256dh"],
auth: subscriptions["auth_key_1"]["auth"],
vapid: a_hash_including(...)
}
expect(WebPush).to receive(:payload_send).with(first_notification_payload)
POST requests there whenever a notification is pushed.See https://github.com/decidim/decidim/pull/16714.
Disable the push notifications feature by removing the VAPID keys in the server.
SSRF
This issue was discovered in a security audit organized by the Decidim Association and made by Radically Open Security against Decidim financed by NGI.
왜 이 VPI인가 (설명가능 · 실험적)
VPI 산정 기준
| 영향도 | 64.00 |
| 악용 신호(추가 악용신호 없음) | ×1.00 |
| VPI | 64.00 |
VPI 공식 vpi-v1 기준