安全跟进:Bearer Token 比较改为常数时间
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- go
- Domain
- authentication, security
Research direction
Read internal/server/middleware.go and the open-pdf withAuth implementation referenced in the issue. Check how the middleware compares Bearer tokens and how the reference handles comparison. Update the comparison to use crypto/subtle.ConstantTimeCompare, then confirm the middleware still accepts matching tokens and rejects mismatches.
Written by the indexing model from the issue text.
Description
PR #12 review 记录:internal/server/middleware.go 的 withAuth 使用字符串直接比较 token,存在时序侧信道理论风险。改为 crypto/subtle.ConstantTimeCompare(参照 open-pdf withAuth 实现)。来源:PR #12 review 🟡 项。
- Dominant language
- Go
- Stars
- 2
- Forks
- 1
- Avg merge
- 1h 37m
- Merged PRs (30d)
- 6
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LinuxSuRen/open-img-sync
-
requirement
Difficulty 4/5 3-5 days Newbie friendliness 55/100
LinuxSuRen/open-img-sync#23 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
LinuxSuRen/open-img-sync#19 ·
Maintainers usually reply within 1 day
-
容器化运行与多架构镜像发布(GHCR,同版本同源)Possibly taken @linuxsuren-fs claimed this 5 days ago. Openrequirement
Difficulty 4/5 3-5 days Newbie friendliness 25/100
LinuxSuRen/open-img-sync#8 · 1 comment ·
Maintainers usually reply within 1 day
-
单二进制分发与 CLI 规范(version 子命令、多平台 Release)Possibly taken @linuxsuren-fs claimed this 5 days ago. Openrequirement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
LinuxSuRen/open-img-sync#7 · 1 comment ·
Maintainers usually reply within 1 day
-
Web 管理界面(Vue 3,嵌入单二进制)Possibly taken @linuxsuren-fs claimed this 5 days ago. Openrequirement
Difficulty 5/5 Over a week Newbie friendliness 20/100
LinuxSuRen/open-img-sync#6 · 1 comment ·
Maintainers usually reply within 1 day
All issues in LinuxSuRen/open-img-sync
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
aminueza/terraform-provider-minio#1406 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
kubernetes/kubeadm#3339 ·
-
A failed hydrate call can be dropped when the row's wait is ready tooPossibly taken @turbot-agent-fleet claimed this today. Openagent:ready
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
turbot/steampipe-plugin-sdk#1018 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
speakeasy-api/speakeasy#2159 ·
Maintainers usually reply within 1 day
-
enhancement needs-review
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day