3.2 KiB
简体中文 | English
Security Policy
Thanks for helping keep Sa-Token and the wider dromara ecosystem secure.
Reporting a vulnerability
Please do not open a public issue, discussion, or pull request that describes a suspected vulnerability — that gives attackers a head-start before a fix lands.
Use one of these private channels instead:
-
GitHub's Private Vulnerability Reporting (preferred). Open a private security advisory at https://github.com/dromara/Sa-Token/security/advisories/new. GitHub automatically routes it to the maintainers, keeps the discussion private until you and the maintainers agree to publish, and (optionally) assigns a CVE on publish.
-
Email. If GitHub PVR is unavailable to you for any reason, email the project lead directly: 2393584716@qq.com.
-
WeChat. If you already use WeChat, you can also add the project lead at
kite2020_for more timely follow-up. Please set the friend-request note toSa-Token 漏洞提交.
What to include
A good report contains:
- A clear description of the vulnerability and its impact.
- Steps to reproduce against a specific commit SHA or release tag.
- Affected code locations (
file:line) where useful. - A suggested fix or mitigation if you have one.
- Whether you'd like credit in the published advisory and, if so, under what name.
Scope and supported versions
Sa-Token is a Java authentication / authorization framework (login, permissions, session, SSO, OAuth2, JWT). The maintainers support security fixes on the latest minor release. Older releases will not generally receive backports.
In-scope vulnerability classes include:
- Authentication / authorization bypass
- Session fixation, token forgery, JWT signature / claims handling flaws
- SSO redirect / open-redirect / ticket exfiltration
- OAuth2 client / authorization-code flow flaws
- Cryptographic misuse in stored secrets / signing keys
- Insecure deserialization in token / cookie codecs
Out-of-scope:
- Findings against intentionally trusted-admin features (config-driven behavior that the framework explicitly delegates to the integrator).
- Issues that require an attacker to already have full server / database access.
- Best-practice complaints without a concrete impact (e.g. "this header should be set", "TLS version should be raised").
Process
After you submit:
- A maintainer will acknowledge receipt within roughly 1 week.
- We'll triage the report: confirm severity, scope, and reproducibility.
- We'll work with you on a fix and a coordinated disclosure timeline (typically up to 90 days, longer if the fix is structural).
- On publication, we credit you in the advisory unless you ask not to be credited.
Hall of fame
Reporters who have helped harden Sa-Token via responsible disclosure will be listed here once the corresponding advisory is published.
This policy is suggested via GitHub's "Suggest a security policy" workflow. Maintainers can edit any section freely; the most important thing is that a private reporting channel exists so researchers can submit findings responsibly.