Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

discord-jda/jda
master @ 057478e
20
Fixes
0
CVEs
HIGH
Peak severity
31.6%
Coverage
Highlights
Auth Bypass: 17 prior fixes. Scrutinize any change in this area.
src/main/java/net/dv8tion/jda/utils/PermissionUtil.java: most-fixed (5 issues). Treat as high-risk during review.
5 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Auth Bypass: PermissionUtil contains core authorization logic. Multiple vulnerabilities arose here due to incorrect bitwise mask operations, applying the 'Administrator' flag logic to channel overrides incorrectly, and allowing global permissions (like MANAGE_ROLES) to bypass channel-level restrictions.
Information Disclosure: The global Requester was vulnerable to leaking highly sensitive Discord bot authorization tokens to third-party hosts by failing to validate the request destination host before appending the authorization header.
Auth Bypass: Failing to check context-specific permissions (checking global guild permissions instead of the target voice/text channel permissions) allowed users to bypass channel-level moderation restrictions such as voice mute and deafen.