Skip to content

HackerOne

Discourse

Every publicly disclosed report for Discourse, what kind of bugs they were and what was paid.

disclosed reports
26
with a public bounty
11
median public bounty
$256
public bounties in all
$4,160
Scope, rewards and live status on bugbounty.fyi Accepting reports Bounty up to $2,048 2 targets in scope

Disclosed reports

Newest first. Only what Discourse chose to make public.

IDOR

Access and see `reactions recieved` on the notification of any user

Most notification sub-pages on a user's profile correctly returned 403 when another user tried to open them, but the reactions-received page did not check ownership. An attacker could change the username in the URL and read any user's received reactions.

Discourse

High
DoS

Denial of Service (DoS) Vulnerability in Drafts Creation Endpoint

An authenticated user could send very large draft payloads to the drafts endpoint, which were saved even when the server returned a 502 error. Sending several such drafts caused response times to exceed 32 seconds, indicating resource exhaustion that could disrupt service for other users.

Discourse

High
XSS $256

Web Cache Deception Attack (XSS)

The Discourse application reflected the X-Forwarded-Host header into a font preload URL and CSS block without escaping, allowing script injection. Because responses were cached for a minute, an attacker could poison the cache and serve the script to other visitors whose request headers matched.

Discourse

High
XSS $256

Stored XSS in "post last edited" option

A stored cross-site scripting flaw existed in the 'post last edited' indicator, where an attacker could inject script that ran when a victim clicked the edit pencil. This could let an attacker steal cookies or run arbitrary code in the victim's browser.

Discourse

High
Access control $256

Gaining access to private topics using quoting feature

The onebox preview feature that renders a small preview of a linked Discourse topic checked access using a user-supplied source topic id. By supplying the victim topic's own id as that parameter, the category comparison always matched, letting a low-privileged user read staff-only topic content.

Discourse

High
Account takeover $1,024

Any user with invite capabilities can take-over any account on Discourse

An invite redemption endpoint logged in a user based on an invite token and an email address supplied in the request, without verifying that the email matched the invite. A user with invite privileges could therefore log in as any account whose email or username they knew.

Discourse

Critical
SSRF $64

SSRF in upload IMG through URL

The Discourse forum software allowed users to embed images via URL in private messages, and the server fetched those URLs without properly validating the protocol or destination. An attacker could make the server send requests to internal or external hosts, including FTP and gopher, by using a redirect from an attacker-controlled server.

Discourse

Low
Access control $256

Any authenticated user can download full list of users, including email

The CSV export controller's permission check only verified that the requested entity type was not "admin", but no such entity type exists, so the check effectively only limited how often a user could export. Any authenticated user could therefore export sensitive data such as the full user list with email addresses and admin status.

Discourse

Medium
Path traversal $512

Arbitrary Local-File Read from Admin - Restore From Backup due to Symlinks

An admin could upload a crafted backup archive containing a symbolic link, and after restoring it, read any file the application user could access, including files outside the application directory. This allowed reading local files such as the system password file.

Discourse

High
RCE $512

Admin Command Injection via username in user_archive ExportCsvFile

An admin could inject shell commands through a username because the username was placed unescaped inside a backtick command used to gzip a user export file. This allowed the admin to run arbitrary commands on the server, escalating to remote code execution.

Discourse

High
XSS

Stored XSS in posts because of absence of oembed variables values escaping

A stored cross-site scripting vulnerability existed in Discourse posts because oEmbed data fetched from a remote URL was inserted into the page without escaping. An attacker could host a malicious oEmbed endpoint and embed a link in a post, causing script execution for anyone viewing the post.

Discourse

High
XSS $256

XSS Vulnerability on Image link parser

The markdown parser failed to properly escape image URLs when building an img tag, so a crafted URL containing a quote could break out of the attribute and inject JavaScript. An attacker could run arbitrary script in the context of a victim viewing the rendered content.

Discourse

High
XSS $256

XSS vulnerability on Audio and Video parsers

The Audio and Video onebox parsers in Discourse's onebox library mishandled single quotes in user-supplied URLs, so a malicious user could inject an event handler and execute JavaScript.

Discourse

High
XSS

DOM Based XSS in Discourse Search

A DOM-based cross-site scripting flaw existed in Discourse's search feature. An attacker could craft a search URL containing a script payload that executed when a victim opened the link and used advanced search.

Discourse

High
XSS

Stored Iframe Injection & Permanent Open Redirection - Zero Day

A stored iframe injection in the Discourse mermaid theme component allowed an attacker to embed a malicious iframe in a post or comment. When another user viewed the post, the iframe's script redirected the top-level page to an attacker-controlled site, causing a permanent open redirection.

Discourse

Business logic

Parameter Pollution - Zero Day

The Discourse poll feature accepted multiple values for the same option parameter, so a user could vote for several poll options in one request. An attacker could cast multiple votes in a single poll, skewing the results.

Discourse

RCE

Discourse SNS webhook RCE

Discourse's unauthenticated AWS SNS webhook handler passed an attacker-influenced SubscribeURL to Ruby's open, which executes shell commands when the value starts with a pipe. A signature-check bypass using a crafted SigningCertURL pointing at an AWS SNS API response containing a certificate let an attacker supply a validly signed message and gain remote command execution.

Discourse

RCE

Discoure themes OS Command Injection

A theme's compatibility file was parsed and its version value was passed unsanitised into a shell command, so a malicious theme repository could run arbitrary OS commands on the server. An attacker who could get a theme imported or updated could execute commands as the Discourse user.

Discourse