mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2565] 明文模式下 token 的運作方式安全性 #2039
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#2039
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?
Originally created by @KusakabeShi on GitHub (Sep 5, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2565
Describe the feature request
您好,想請教token是如何在frps和frpc之間傳遞的?
我不擔心數據被竊聽,因為ssh已經有加密了。所以我想讓frp運作在明文模式
但是如果frp運作在明文模式,token是否會以明文傳輸呢?
這讓是否能讓中間人攔截我的token,假冒我的身分以frpc連接我的frps呢?
還是說會有挑戰的過程,伺服器產生一次性challange(或是使用jwt),並計算 md5(challange+token)
把challange明文傳輸給frpc。 frpc也計算 md5(challange+token) ,回傳給frps
token完全沒有被傳輸到
因為文檔沒有提到token如何被處裡的,想來問問
Describe alternatives you've considered
No response
Affected area
@fatedier commented on GitHub (Sep 6, 2021):
你的猜测是正确的,传输的时候会用 token + timestamp 做 hash 运算。
@KusakabeShi commented on GitHub (Sep 6, 2021):
所以就算是明文傳輸模式,也不用擔心黑客攔截token,假冒我的frpc,把流量導向黑客的frpc上,對吧?
對了,hash(token + timestamp),可能有重放攻擊,想請教針對這點有做防禦嗎?
@fatedier commented on GitHub (Sep 7, 2021):
更多的细节建议阅读代码了解。
@github-actions[bot] commented on GitHub (Oct 8, 2021):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.