`validate_exp` should also reject tokens that contain a `exp` field but that can not be parsed
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- rust
调研方向
从 validate_exp 的实现开始,跟踪 exp claim 在未被列为必需项时是如何解析的。为无法解析的 exp 值(例如 ISO8601 字符串)添加覆盖测试,并验证即使 exp 不是必需 claim,验证也会拒绝该 token。
由索引模型根据 Issue 内容生成。
描述
If you have an exp field but have set required claims to not include this field, then validate_exp currently will try to parse the claim. If the claim for example is not parsable, say you used a string based timestamp instead of a numeric timestamp, it should reject the validation instead of silently allowing the token through. This for example, would allow a token with a ISO8601 timestamp that is expired to pass because it was unable to parse. This was quite some surprising behavior, even though technically the JWT is not spec compliant I would expect the validation to catch that. This seems like a potential attack vector that is not covered by the validation logic.
- 主要语言
- Rust
- 星标
- 2.1k
- 派生
- 369
- 平均合并
- 10 天 23 小时
- 30 天内合并 PR
- 3
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Keats/jsonwebtoken 的其他 Issue
-
`Jwk::from_encoding_key` rejects PKCS#8 v2 (RFC 5958) Ed25519 private keys可能已有人在做 @ucsurf 于 5 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
Keats/jsonwebtoken#544 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 85/100
Keats/jsonwebtoken#542 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
Keats/jsonwebtoken#519 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
Keats/jsonwebtoken#497 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
Keats/jsonwebtoken#297 · 19 条评论 · 2 个 reaction ·
查看 Keats/jsonwebtoken 的全部 Issue
相似的 Issue
-
status:needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
agentic-os-org/ANOLISA#6742 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 90/100
Kc1t/alethe-agents#312 ·
维护者通常 3 天内回复
-
api: storage
难度 2/5 1-3 小时 新手友好度 74/100
googleapis/google-cloud-rust#7153 ·
维护者通常 1 天内回复