Windows: only elevate the SMART agent from a protected install location
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- java, powershell
- Domaine
- desktop-dev, security
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Java
- Étoiles
- 6
- Forks
- 6
- Merge moyen
- 10 h 11 min
- PR mergées (30 j)
- 12
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de JDiskMark/jdm-java
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement linux
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
Les mainteneurs répondent en général sous 1 jour
-
documentation linux
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Publish JDiskMark on FlathubOuverteenhancement linux
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
Les mainteneurs répondent en général sous 1 jour
-
bug linux
Difficulté 3/5 1-2 jours Accessibilité débutants 52/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de JDiskMark/jdm-java
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
bloxbean/yaci-store#1445 ·
Les mainteneurs répondent en général sous 1 jour
-
图片灯箱过长的话底部carousel滑动没有惯性Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
-
Spare PermissionOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 63/100
Etar-Group/Etar-Calendar#2234 ·
Les mainteneurs répondent en général sous 1 jour
-
[BUG] MCP resources-as-tools drops invocation context when listing templatesPeut-être pris @CryoThrust l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
langchain4j/langchain4j#7320 ·
Les mainteneurs répondent en général sous 1 jour