회원가입 및 정보수정시 필터링 강화#1461
Merged
8 commits merged intoJul 6, 2015
Merged
Conversation
Contributor
|
👍 |
This pull request was closed.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
회원가입(
insertMember) 및 정보수정(updateMember)시 아이디, 이름, 닉네임 등의 필터링 정책에 일관성이 없어서 태그를 입력하거나 고의로 닉네임 중복을 일으킬 수 있는 문제가 있습니다.<,>,&등의 특수문자를 잘 활용하면 중복체크를 우회할 수 있습니다.htmlspecialchars()적용이 되지 않아서 일부 회원정보를 이용한 태그 삽입이 가능합니다. 엄격한 길이 제한 때문에 당장 XSS 취약점으로 이어지지는 않으나, 회원들이 멋대로 자기 닉네임을 진하게 표시하는 등 귀찮은 일이 생길 수 있습니다.이 PR에서는 위와 같은 문제들을 해결하고, 앞으로의 유지관리 편의를 위해 관련 루틴들의 코딩 스타일을 XE 코딩규칙에 맞게 다소 손보았습니다.
if문이 어디서 끝나는지 한 눈에 알기 어려운 곳이 꽤 많더라고요. 실제 코드와 동떨어진 내용의 주석들도 고쳤습니다.