Windows: only elevate the SMART agent from a protected install location
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java, powershell
- Lĩnh vực
- desktop-dev, security
Hướng nghiên cứu
Start with SmartEscalation.ensureAgentRunning() and how it gets its path from Smart.resolveSmartctlPath(), then read SmartEscalation.isProtectedLocation() as it is used in PR #261 for the cache drop path. Done means the SMART elevation path applies the same protected-location check, with the -Djdm.devElevation=true opt-in, and the design question of signature or ACL verification is settled first. Expect a maintainer decision before coding, since the issue leaves the approach open.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Found in the PR #261 review (Copilot, "Restrict elevation to verified protected installations").
Problem
SmartEscalation.ensureAgentRunning() elevates smart-agent.ps1 from wherever Smart.resolveSmartctlPath() finds smartctl.exe: jar-relative, java.home-relative, APPDIR, or system paths. Outside the MSI install (zip/portable layout, IDE target/), that folder can be user-writable, so any process could replace the script and get code run elevated when the user approves the SMART UAC prompt.
PR #261 already restricts the new cache drop use of the agent to installs under Program Files (SmartEscalation.isProtectedLocation(), dev opt-in -Djdm.devElevation=true). The existing SMART path is unchanged to avoid breaking SMART in dev runs.
Proposal
- Apply
isProtectedLocation()to SMART elevation too; outside Program Files show SMART as unavailable (or ask to run as admin), with the same dev opt-in. - Consider verifying the script's signature or ACL instead of the path alone.
- Review the zip distribution plan (README: portable, run from USB) against this.
- Ngôn ngữ chính
- Java
- Star
- 6
- Fork
- 6
- Merge trung bình
- 10 giờ 11 phút
- Pull request đã merge (30 ngày)
- 12
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 JDiskMark/jdm-java
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement linux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation linux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Publish JDiskMark on FlathubĐang mởenhancement linux
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug linux
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của JDiskMark/jdm-java
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
bloxbean/yaci-store#1445 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
图片灯箱过长的话底部carousel滑动没有惯性Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
Spare PermissionĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
Etar-Group/Etar-Calendar#2234 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] MCP resources-as-tools drops invocation context when listing templatesCó thể đã có người làm @CryoThrust đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
langchain4j/langchain4j#7320 ·
Maintainer thường phản hồi trong vòng 1 ngày