[P1][security] Host header를 canonical host 설정과 검증 #32
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?
문제
crates/portal-relay/src/api/mod.rs에서Hostheader를 register URI와 SIWE message domain 등에 사용하는 경로가 있습니다.Hostheader는 client가 임의로 설정할 수 있습니다.위험
제안
portal_host/root_host또는 canonical public host와 일치하는지 검증완료 기준
검토 기준: 업로드된 Rust
portal-relay코드 정적 리뷰. 리뷰 환경에서는cargo check/test/clippy를 실행하지 못했습니다.수용했습니다. PR #62에서 Host header를 configured portal host/portal_url 기준으로 검증하고, SIWE challenge URI/domain은 client-provided Host가 아니라 canonical portal_url에서 생성하도록 변경했습니다. 검증: cargo test --locked, cargo clippy --locked --all-targets -- -D warnings.