-
Notifications
You must be signed in to change notification settings - Fork 0
⚡ Bolt: [performance improvement] sanitize_line 정제 속도 99% 최적화 #2171
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
Open
seonghobae
wants to merge
8
commits into
main
Choose a base branch
from
bolt/sanitize-line-regex-bypass-6810331230547348666
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+11
−1
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ca3fbf3
perf(sanitize): 정규표현식 엔진 실행 전 빠른 O(N) 서브스트링 검사 도입
seonghobae 6bbda5b
perf(sanitize): 정규표현식 엔진 실행 전 빠른 O(N) 서브스트링 검사 도입
seonghobae f253f9c
perf(sanitize): 정규표현식 엔진 실행 전 빠른 O(N) 서브스트링 검사 도입
seonghobae 3bdf20f
merge(main): sync PR #2171 for triage
seonghobae f3d6f61
perf(sanitize): 정규표현식 엔진 실행 전 빠른 O(N) 서브스트링 검사 도입
seonghobae 992441a
perf(sanitize): 정규표현식 엔진 실행 전 빠른 O(N) 서브스트링 검사 도입 및 보안 취약점 수정
seonghobae d392170
perf(sanitize): 정규표현식 엔진 실행 전 빠른 O(N) 서브스트링 검사 도입
seonghobae bb12ccf
perf(sanitize): 정규표현식 엔진 실행 전 빠른 O(N) 서브스트링 검사 도입 및 보안 취약점 수정
seonghobae 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
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
Oops, something went wrong.
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.
🔒 Security & Privacy | 🛡️ Analyzed with Security Review | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: ContextualWisdomLab/.github
Length of output: 30618
🏁 Script executed:
Repository: ContextualWisdomLab/.github
Length of output: 40045
🏁 Script executed:
Repository: ContextualWisdomLab/.github
Length of output: 11700
🤖 get_repo_knowledge executed:
get_repo_knowledge ContextualWisdomLab/.github /tmp/coderabbit-repo-knowledge/contextualwisdomlab-github-bad40478/conventionsLength of output: 4783
SSRF
Reachability: Internal
Exploitability: Theoretical
CWE: CWE-918 — Server-Side Request Forgery (SSRF)
리다이렉트 대상의 호스트를 검증하세요.
_request_json의 호출자는 URL을https://api.github.com/에서 직접 구성하므로 공격자가 초기 URL을 지정하는 직접 SSRF 경로는 없습니다. 그러나 기본urllib.request.urlopen은 리다이렉트를 자동으로 따르므로, 외부Location응답이 발생하면 현재 검사가 실제 연결 대상을 제한하지 못합니다. 각 리다이렉트의 scheme과 hostname을 검증하거나, GitHub 외부 호스트로의 리다이렉트를 거부하는 custom redirect handler를 사용하세요. 리다이렉트 동작을 검증하는 테스트도 추가하세요.🤖 Prompt for AI Agents