MCP scan allowlist ignores `tool:` field, so entries apply server-wide
Maintainer thường phản hồi trong vòng 11 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 76/100
Hướng nghiên cứu
Start with scripts/mcp-scan/process_scan_results.py, especially load_security_config() and is_issue_allowed(), then inspect the scanner tests. Add coverage for per-tool matches, duplicate codes across tools, and entries without tool:. Done means tool-scoped entries only allow matching findings, server-wide entries retain their current behavior, and each match reports its own reason.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
security.allowed_issues entries in MCP server specs commonly include a tool: field, which reads as scoping the entry to one tool. scripts/mcp-scan/process_scan_results.py never reads it. load_security_config() builds a dict keyed only by code (line 84), and is_issue_allowed() checks only the finding's AITech/AISubtech codes against that dict (lines 91-127). So every entry allowlists its code for every tool on the server, including tools added in future versions.
Impact
- 7 specs use
tool:across 17 entries (heroku, phoenix, sentry, server-everything, arxiv, clickhouse, redis). All of them are broader than they look. npx/heroku-mcp-server/spec.yamlhas eight separateAISubtech-12.1.2entries, one per tool. They collapse into a single dict key, so 12.1.2 is allowlisted on every Heroku tool, and only the last entry'sreasonsurvives into the scan output.- Prefix matching widens this further. An
AITech-12.1entry also covers everyAISubtech-12.1.xon every tool. - It makes narrow allowlists for LLM-analyzer flakes unsafe. For example, supabase's main build just failed on a nondeterministic AITech-8.2 (data exfiltration) finding on
get_publishable_keys. Allowlisting that would also silence any future 8.2 finding onexecute_sql.
Proposed fix
- Store allowlist entries as a list of
(code, tool, reason)rather than a dict keyed by code. - When an entry has
tool, match only findings whosetool_nameequals it. Entries withouttoolkeep today's server-wide behavior, so existing specs withouttool:don't change. - Keep each matched entry's own
reasonin the output. - Add tests for per-tool matching, duplicate codes across tools, and the no-
toolfallback.
Rollout note
Turning this on will narrow 17 existing entries. A spec whose allowlist was quietly covering other tools could start failing its scan. Running the scanner over those 7 specs before merging would show which entries need to be widened or duplicated.
- Ngôn ngữ chính
- Go
- Star
- 8
- Fork
- 7
- Merge trung bình
- 6 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 74
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của stacklok/dockyard
-
grype high security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 53/100
Maintainer thường phản hồi trong vòng 11 ngày
-
grype high security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 56/100
Maintainer thường phản hồi trong vòng 11 ngày
-
Package Postman with proxy-compatible NodeCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởneeds-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
stacklok/dockyard#1195 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 11 ngày
-
grype high security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 52/100
stacklok/dockyard#1191 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 11 ngày
-
grype high security
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
stacklok/dockyard#1189 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 11 ngày
Tất cả issue của stacklok/dockyard
Issue tương tự
-
type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
messaging/v1: IsGRPCProtocol and InternalMetadataToGrpcMetadata panic on empty or nil metadata valuesCó thể đã có người làm @patelshivani2283-lab đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
stacklok/toolhive-catalog#2024 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày