Skip to content

[Fix] 리다이렉트 caution 오탐 수정 - #41

Merged
minsoo0506 merged 1 commit into
devfrom
fix/#40-redirect-caution
Jun 25, 2026
Merged

[Fix] 리다이렉트 caution 오탐 수정#41
minsoo0506 merged 1 commit into
devfrom
fix/#40-redirect-caution

Conversation

@minsoo0506

Copy link
Copy Markdown
Contributor

요약

정상 네이버 릴스 공유 링크가 caution으로 오탐되는 문제를 수정했습니다.

기존에는 link.naver.com/bridge?url=https://m.naver.com/shorts/...처럼 같은 등록 도메인 내부로 이동하는 URL도 url 파라미터가 있다는 이유만으로 OPEN_REDIRECT_PARAM 신호가 붙었습니다.

이제 redirect 계열 파라미터의 목적지 등록 도메인이 현재 등록 도메인과 같으면 오픈 리다이렉트 신호를 붙이지 않습니다. 외부 도메인으로 이동하는 경우는 기존처럼 OPEN_REDIRECT_PARAM으로 탐지합니다.

검증 결과 https://naver.me/5UV6uvn2는 다음처럼 변경되었습니다.

변경 전: verdict=caution, score=46
변경 후: verdict=safe, score=15

연관 이슈 및 Close 할 이슈

close #40

Pull Request 체크리스트

TODO

  • 최종 결과물을 확인했는가?
  • 의미 있는 커밋 메시지를 작성했는가?

@minsoo0506

Copy link
Copy Markdown
Contributor Author

P.S

네이버만 하드코딩한 처리는 아닙니다.

현재 로직은 모든 도메인에 공통으로 적용됩니다. 기준은 “같은 등록 도메인인지”입니다.

예를 들면:

https://link.naver.com/bridge?url=https://m.naver.com/shorts/...

는 현재 도메인도 naver.com, 파라미터 목적지도 naver.com이라서 OPEN_REDIRECT_PARAM을 붙이지 않습니다.

같은 원리로 이런 케이스도 예외 처리됩니다.

https://example.com/go?url=https://m.example.com/page
https://foo.google.com/redirect?url=https://accounts.google.com/

둘 다 등록 도메인이 각각 example.com, google.com으로 같기 때문입니다.

반대로 외부 도메인으로 보내면 여전히 잡힙니다.

https://link.naver.com/bridge?url=https://evil.test/
https://example.com/go?url=https://phishing.test/

이 경우 목적지 등록 도메인이 다르므로 OPEN_REDIRECT_PARAM이 붙습니다.

@minsoo0506
minsoo0506 requested review from kbh0218 and sunm2n June 24, 2026 13:28
@minsoo0506
minsoo0506 merged commit e10b416 into dev Jun 25, 2026
1 check passed
@minsoo0506
minsoo0506 deleted the fix/#40-redirect-caution branch June 25, 2026 05:37
@minsoo0506 minsoo0506 added bug 버그 발생 fix 기능 및 버그 수정 labels Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 버그 발생 fix 기능 및 버그 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FIX] 네이버 릴스 정상 링크가 caution으로 오탐되는 문제

1 participant