접근 통제 점검(URL 권한 표)
check_egovframe_accessStatically detects missing access-control checks in eGovFrame controller handlers, reports suspicious gaps with evidence, and outputs a URL permission table for audit.
Instructions
접근 통제 누락을 정적으로 찾습니다(읽기 전용, 고치지 않음). 컨트롤러 핸들러마다 URL·HTTP 메서드·하는 일(서비스 호출·메서드 이름으로 등록/조회/수정/삭제)·검증 수준(없음 < 로그인 < 역할 < 소유권 — EgovUserDetailsHelper·EgovAuthorizationHelper·@PreAuthorize/@Secured·등록자 비교의 호출 사전)을 URL 권한 표로 내고(format=csv 는 감리 제출용), 전역 보호(Spring Security URL 규칙·인증 인터셉터·표준프레임워크 보호자원)를 읽은 뒤, 누락 의심을 근거와 함께 보고합니다: 검증이 전혀 없는 변경 핸들러, 같은 컨트롤러의 형제 핸들러보다 낮은 검증, 로그인만 확인하고 등록자와 비교하지 않는 수정·삭제(CWE-639), 형제보다 낮은 상세 조회. 예외 파일 .egovframe-access-ignore.json. 호출 이름 기반 휴리스틱이라 서비스·AOP·필터의 검증과 DB 의 역할–URL 데이터는 보이지 않습니다.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectDir": "<projectDir>"
},
"name": "check_egovframe_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | Markdown 에 보일 누락 의심 수(URL 표는 3배) | |
| format | No | 응답 형식(csv = URL 권한 표) | markdown |
| rulePacks | No | 기관 규칙 팩 디렉터리(access 절: 검증 호출 사전·소유자 필드·공개 경로). 없으면 환경 변수 EGOVFRAME_RULE_PACKS | |
| projectDir | Yes | 프로젝트 디렉터리(절대경로 권장) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| global | Yes | ||
| summary | Yes | ||
| findings | Yes | ||
| handlers | Yes | ||
| rulePacks | No | ||
| durationMs | Yes | ||
| ignoreFile | Yes | ||
| projectDir | Yes | ||
| rulesVersion | Yes | ||
| invalidIgnores | Yes |