Skip to content

Fix Quartz job whitelist check to prevent prefix bypass#5

Open
yannaingtun wants to merge 1 commit intoqiantongtech:developfrom
yannaingtun:fix/quartz-whitelist-bypass
Open

Fix Quartz job whitelist check to prevent prefix bypass#5
yannaingtun wants to merge 1 commit intoqiantongtech:developfrom
yannaingtun:fix/quartz-whitelist-bypass

Conversation

@yannaingtun
Copy link
Copy Markdown

This PR tightens the Quartz job whitelist validation.

The previous implementation relied on prefix-based checks, which could be bypassed using crafted class or bean names. This change validates the resolved bean’s actual package name and explicitly blocks known disallowed prefixes.

There is no functional impact for valid jobs. The change only improves safety and reduces the risk of misuse.

Related CWE: CWE-284 (Improper Access Control)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant