-
Notifications
You must be signed in to change notification settings - Fork 3
mypage & 이메일 인증 반영 #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
mypage & 이메일 인증 반영 #148
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
이메일 인증 전송 기능이 잘 구현되었으나 보안 및 설정 개선이 필요합니다.
API 호출 로직과 에러 처리가 적절하게 구현되어 있습니다. 다만 하드코딩된 URL과 보안 관련 개선이 필요합니다.
다음 개선사항들을 제안합니다:
또한 CSRF 보안을 위한 토큰 검증을 고려해보세요.
CSRF 보안 설정이 적절히 되어 있는지 확인하기 위해 다음 스크립트를 실행해보세요:
🏁 Script executed:
Length of output: 1925
CSRF 전역 비활성화 확인 및 redirectUrl 하드코딩 제거 필요
이메일 인증 전송 기능은 정상 동작하나, 현 코드에서는 하드코딩된
redirectUrl과 전역 CSRF 비활성화로 인한 보안 취약점이 발견되었습니다.적용 위치
src/main/resources/static/js/test-mypage.js(약 111–143행)src/main/java/org/ezcode/codetest/common/security/config/SecurityConfig.java개선 사항
하드코딩된 URL 대신 런타임 호스트를 참조하도록 변경합니다.
현재
SecurityConfig.java에서.csrf(AbstractHttpConfigurer::disable())로 전역 비활성화되어 있습니다.위 두 가지를 반영해 보안 및 설정 유연성을 강화해주세요.
📝 Committable suggestion
🤖 Prompt for AI Agents