mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #3452] [MERGED] use constant time comparison #4750
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#4750
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/3452
Author: @fatedier
Created: 5/28/2023
Status: ✅ Merged
Merged: 5/28/2023
Merged by: @fatedier
Base:
dev← Head:pwd📝 Commits (1)
3d32e28use constant time comparison📊 Changes
11 files changed (+45 additions, -35 deletions)
View changed files
📝
client/admin.go(+1 -1)📝
pkg/auth/token.go(+6 -6)📝
pkg/nathole/controller.go(+1 -1)📝
pkg/plugin/client/http_proxy.go(+5 -1)📝
pkg/plugin/client/static_file.go(+2 -1)📝
pkg/util/net/http.go(+16 -16)📝
pkg/util/util/util.go(+5 -0)📝
server/dashboard.go(+1 -1)📝
test/e2e/framework/framework.go(+4 -4)📝
test/e2e/framework/process.go(+2 -2)📝
test/e2e/pkg/port/port.go(+2 -2)📄 Description
Summary
🤖 Generated by Copilot at 920ea05
This pull request enhances the security of frp by using constant time string comparisons and adding delays for authentication failures in various components. It also improves the error logging and test execution time for the e2e tests. The affected components include the token auth setter verifier, the http_proxy and static_file plugins, the HTTPAuthMiddleware, the admin and dashboard servers, and the xtcp controller.
WHY
Walkthrough
🤖 Generated by Copilot at 920ea05
admin.go,static_file.go, anddashboard.gofiles (link, link, link, link)http_proxy.go,static_file.go, andnet/http.gofiles (link, link, link)net/http.go(link, link)http_proxy.goandnet/http.gofiles (link, link, link, link)util/util.gofile (link, link)token.gofile and the sign key in thecontroller.gofile (link, link, link, link)process.go(link)framework.go(link, link)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.