Skip to content
KitploitKITPLOIT
도구익스플로잇블로그
Log in
제출
도구익스플로잇블로그
제출

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

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

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
cortex9-oauthlib-token-grant-client-id-confusion-model — CVE-2026-118669(OAuthLib 토큰 부여 client_id 혼동)의 오프라인 교육용 모델 | Kitploit
도구/GitHubGitHub/federiconbaez/cortex9-oauthlib-token-grant-client-id-confusion-model
Authentication & AuthorizationVulnerability AnalysisCode AnalysisWeb SecurityPapers & ResearchLearning & EducationLabs & Practice
GitHub
공유
federiconbaez/cortex9-oauthlib-token-grant-client-id-confusion-model

cortex9-oauthlib-token-grant-client-id-confusion-model

CVE-2026-118669(OAuthLib 토큰 부여 client_id 혼동)의 오프라인 교육용 모델

저장소 보기
12일 전아직 검토되지 않음

cortex9-oauthlib-token-grant-client-id-confusion-model

CVE-2026-118669(GHSA-7984-qgvg-3j9c)의 오프라인 모델: OAuthLib 4.0.0 이전 버전에서 토큰 grant 핸들러는 request.client를 하나의 클라이언트로 인증하지만, 요청 본문에서 공격자가 제공한 client_id를 유지하여 validate_grant_type() 및 validate_scopes()에 전달합니다. low로 인증하고 client_id=high를 전송하는 클라이언트는 애플리케이션 validator가 client_id 인수로 권한을 부여할 때 grant 및 scope 검사가 high로 실행됩니다. 커밋 c951a1d09f99(pre = 수정 전, post = 수정 후)에서 수정되었으며, 4.0.0에서 릴리스되었습니다.

교육용, 오프라인, 결정적, Python 표준 라이브러리만 사용합니다. oauthlib은 설치되거나 import되지 않으며, HTTP 요청이 이루어지지 않습니다. validator는 GHSA PoC의 인메모리 데모(low: scopes read; high: read admin)에 batch를 더한 것으로, client_credentials만 허용됩니다.

스페인어: README.es.md. 연습문제: PRACTICE.md.

수정 사항이 변경하는 내용(저장된 diff의 줄)

Diff 줄prepost
117-124, 130 (client_credentials)authenticate_client, 속성 검사, 본문 client_id로 validate_grant_type, 그 다음 client_id = client_id or client.client_idgrant 검사 전에 validate_client_confidential (125)
165, 180-184, 190-191 (password)create_token_response에서 클라이언트 인증; validate_grant_type 후에 채움validate_token_request (173) 내부의 validate_client_authentication
23-28 (authorization_code), 150-152 (refresh_token), 235-243 (device_code)누락된 경우에만 채움; refresh에는 속성 검사 없음제거됨; 바인딩은 base.py에서 발생
41-61 / 63-81 (base.py, 추가됨)—인증 후: client에 client_id가 있어야 함 (52-56 / 72-76); 누락된 client_id는 채워짐 (58-59 / 78-79); 다른 값이면 ServerError 발생 (60-61 / 80-81)
83-105 (base.py)인라인 기밀/공개 검사 (87-103)두 헬퍼로 디스패치
296-324, 345-353 (tests)—불일치 → ServerError, 누락된 속성 → NotImplementedError

base.py validate_grant_type / validate_scopes(수정 사항에 의해 변경되지 않음, diff에 없음)는 수정 전 파일에서 읽었습니다. SOURCES.md를 참조하세요.

차등 증거(results/cases.tsv)

Caseprepost
p01 GHSA PoC, client_credentials, 인증 low, 본문 client_id=high, scope=adminTOKEN_SPLIT: low로 인증됨, grant 및 scope가 high로 검사됨, admin 부여됨ServerError (125; 58-61)
p02 password와 동일TOKEN_SPLITServerError (173; 58-61)
p03 batch(password grant 없음)가 client_id=high 전송TOKEN_SPLITServerError
p05 공개 클라이언트, validator가 다른 클라이언트를 설정TOKEN_SPLITServerError (173; 78-81)
p06-p08 device / authorization code / refreshSTAGE_OK_SPLITServerError
n01, n02 GHSA 대조군(client_id=low, admin)InvalidScopeError동일
a01 본문에 client_id 없음, 정책 argUnauthorizedClientError (grant가 None으로 검사됨)TOKEN
a03 validator가 request.client로 권한 부여TOKEN_SPLIT (low의 scopes, 토큰은 high로 기록됨)ServerError

*_SPLIT은 요청이 request.client_id가 request.client.client_id와 다른 상태로 완료되었음을 의미합니다. STAGE_OK는 코드 / refresh-token / device-code 검사가 모델링되지 않은 grant에 대해 모델링된 단계가 통과했음을 의미합니다.

스윕(results/sweep.csv, 7,200개 케이스): post는 절대 분할로 끝나지 않습니다. 모든 post 성공은 request.client_id == request.client.client_id를 가집니다. 모든 pre 분할은 ServerError 또는 NotImplementedError가 됩니다. 본문 client_id가 인증된 클라이언트와 같을 때 수정 사항은 아무것도 변경하지 않습니다.

모델 관찰 사항, 발견 사항 아님: pre에서 본문에 client_id가 없는 client_credentials 요청은 validate_grant_type(None, …)을 호출하며(diff:130의 채움은 권한 부여 확인 이후에 발생), 따라서 인자로 권한을 부여하는 검증기는 이를 거부합니다(a01). client_id이 없는 클라이언트 객체와 함께 pre refresh_token을 실행하면 diff:151-152에서 그대로 AttributeError이 발생합니다. 둘 다 데모 검증기에 의존합니다.

실행

python3 tests/run.py                                    # any skip = failure
python3 scripts/derive_expected.py | diff - fixtures/expected.tsv
python3 scripts/derive_expected.py sweep | diff - results/sweep.csv
PYTHONPATH=src python3 -m oauthlib_model results fixtures/cases.tsv /tmp/r && diff -r results /tmp/r
PYTHONPATH=src python3 -m oauthlib_model case pre client_credentials confidential low auth high admin - arg

fixtures/cases.tsv에는 수동 레이블이 저장되어 있으며, scripts/derive_expected.py은 모델을 가져오지 않고 플랫 단계 목록에서 모든 행을 다시 도출합니다. 테스트는 세 가지를 모두 비교합니다.

LIMITATIONS.md와 SOURCES.md를 참조하세요. 라이선스: Apache-2.0.

도구 다운로드

인기

모두 보기 →

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

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 궁극의 OSINT 툴킷: 조사 그래프, 신뢰도 점수 산정, 별칭 패밀리, 지도, 타임라인 및 보고서. 49개 모듈, 400개 이상 사이트, API 키 불필요.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # GhostLock 원탭 실행 앱 (CVE-2026-43499)

    634
  • 3

    looking-glass

    anonghosty/looking-glass

    Shadowserver 보고서를 MongoDB로 수집하고 이를 대화형 지도, 분석, 발견 사항, 권고 및 경영진 대시보드로 재생하는 CSIRT 플랫폼입니다.

    417
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer는 오픈소스 권한 접근 관리(PAM) 플랫폼으로, DevOps 및 IT 팀이 웹 브라우저를 통해 SSH, RDP, Kubernetes, 데이터베이스 및 RemoteApp 엔드포인트에 주문형 보안 액세스를 제공합니다.

    383
  • 5

    ARTEX

    baarai/artex

    LLM 멀티 에이전트 자율 침투 테스트 플랫폼으로, 플래너/워커 에이전트, 자산 및 탐색 그래프, MITM 트래픽 기록, 취약점 재테스트 기능을 제공합니다.

    328
  • 6

    SafeLine

    chaitin/safeline

    악성 HTTP 트래픽을 필터링하고 SQL 인젝션, XSS, 봇 공격을 차단하며, 속도 제한 및 동적 HTML/JS 암호화를 제공하는 자체 호스팅 WAF 및 리버스 프록시입니다.

    288

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →