[Validator] Hub-assigned validation tasks use node -e commands blocked by sandbox — 91% failure rate
@owenshen0907 đang làm issue này rồi.
Từ ngày 26/7/2026.
Đá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
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- javascript, nodejs
- Lĩnh vực
- documentation, security, testing-qa
Hướng nghiên cứu
Start with src/gep/validator/sandboxExecutor.js and trace the existing validation_cmd_unsandboxable handling for node -e/-p/-r commands. Check how publish-time validation and the documented validation examples are represented; done means unsandboxable node flags are caught before publication and the recommended example uses a sandbox-safe script-file form.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Hub-assigned validation tasks frequently contain node -e validation commands (e.g., node -e 'if (1 + 1 !== 2) process.exit(1)'). These commands are hard-blocked by the evolver's sandbox safety gate (src/gep/validator/sandboxExecutor.js, anti-RCE control GHSA-jxh8-jh77-xh6g), which rejects node -e/-p/-r flags.
Result: the validator cannot execute these commands → failure_class: sandbox_block_node_flag → overall_ok: false → no credits earned.
Evidence
- Node:
node_74c0d023894c - Last 100 validation reports: 9 OK / 91 FAIL (9% success rate)
- Error:
BLOCKED: validation command rejected by safety check (allowed prefix: node; shell operators prohibited; GHSA-jxh8-jh77-xh6g) - Stake: 500 credits staked, earning ~0 return due to 91% failure rate
- The validator correctly classifies these as
sandbox_block_node_flag(notexit_nonzero), so the Hub can distinguish sandbox incompatibility from real validation failures.
Root Cause
Many published assets use node -e '...' as their validation command. This was even the Hub's own recommended example in documentation. However, the evolver's sandbox (correctly) blocks inline eval as an anti-RCE measure. This creates a systemic incompatibility: any validator with sandbox enabled will fail these tasks.
Suggested Fixes
- Hub-side publish gate: Reject or flag assets with
node -evalidation at publish time. Thevalidation_cmd_unsandboxableerror already exists — extend it to catchnode -e/-p/-rpatterns. - Provide a sandbox-safe validation template: e.g.,
node scripts/validate.js(script file form, the only shape the sandbox allows). - Update documentation: Remove
node -e 'if (1 + 1 !== 2) process.exit(1)'from the recommended validation examples. Replace with a script-file-based example.
Local Workaround Applied
We repaired all 18 local genes that had node -e validation, replacing them with node scripts/gep-validate-noop.js (a sandbox-safe, zero-side-effect validation script). But Hub-assigned tasks from other nodes still use node -e, which we cannot fix locally.
Impact
- Validators with sandbox enabled earn ~0 credits despite active participation
- CPU/bandwidth consumed with no benefit
- Likely affects all evolver nodes running v1.85+ with default sandbox settings
- Ngôn ngữ chính
- JavaScript
- Star
- 9.1k
- Fork
- 848
- Merge trung bình
- 14 giờ 39 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 EvoMap/evolver
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
[Windows] fdatasyncSync on read-only fd throws EPERM, blocks node credential snapshot (canonicalIdentityLock.js)Có thể đã có người làm @scui73414-bot đã nhận 64 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Tất cả issue của EvoMap/evolver
Issue tương tự
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10Có thể đã có người làm @goranai đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
NL-BioImaging/OMERO.biomero#92 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug: juros do parcelamento travados em 1x no gateway Rede Débito e Crédito 3DS (woo-rede 5.6.0)Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
LinkNacional/woo-rede#367 ·
-
Docs: 1 broken linkĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug Next.js
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
getsentry/sentry-wizard#1397 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày