CVE-2026-71278: CWE-94 in iot-ecology rust-iot-platform
rust-iot-platform allows creating a "calc rule" via POST /calc-rule/create (api/src/controller/calc_rule_router.rs) containing an arbitrary `script` field. This route does not take the AuthToken request guard used elsewhere in the application, making it reachable without authentication. The stored script is subsequently executed via quick_js::Context::eval() in api/src/biz/calc_run_biz.rs with no sandboxing, allowing an unauthenticated attacker to achieve arbitrary JavaScript execution in the server process by creating and triggering a malicious calc rule.
AI Analysis
Technical Summary
The rust-iot-platform exposes a POST /calc-rule/create endpoint that accepts a 'script' field in the request body. This endpoint does not enforce authentication, unlike other parts of the application. The submitted script is stored and later executed using quick_js::Context::eval() without any sandboxing or restrictions. This design flaw allows an unauthenticated attacker to execute arbitrary JavaScript code within the server process, leading to full compromise of confidentiality, integrity, and availability.
Potential Impact
An attacker can achieve remote code execution on the server without any authentication, leading to complete system compromise. The vulnerability affects confidentiality, integrity, and availability of the affected system. Given the high CVSS score of 9.8, the impact is critical.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict access to the vulnerable API endpoint by implementing authentication and input validation. Avoid executing untrusted scripts without sandboxing.
CVE-2026-71278: CWE-94 in iot-ecology rust-iot-platform
Description
rust-iot-platform allows creating a "calc rule" via POST /calc-rule/create (api/src/controller/calc_rule_router.rs) containing an arbitrary `script` field. This route does not take the AuthToken request guard used elsewhere in the application, making it reachable without authentication. The stored script is subsequently executed via quick_js::Context::eval() in api/src/biz/calc_run_biz.rs with no sandboxing, allowing an unauthenticated attacker to achieve arbitrary JavaScript execution in the server process by creating and triggering a malicious calc rule.
CVSS v3.1
Score 9.8critical
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The rust-iot-platform exposes a POST /calc-rule/create endpoint that accepts a 'script' field in the request body. This endpoint does not enforce authentication, unlike other parts of the application. The submitted script is stored and later executed using quick_js::Context::eval() without any sandboxing or restrictions. This design flaw allows an unauthenticated attacker to execute arbitrary JavaScript code within the server process, leading to full compromise of confidentiality, integrity, and availability.
Potential Impact
An attacker can achieve remote code execution on the server without any authentication, leading to complete system compromise. The vulnerability affects confidentiality, integrity, and availability of the affected system. Given the high CVSS score of 9.8, the impact is critical.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict access to the vulnerable API endpoint by implementing authentication and input validation. Avoid executing untrusted scripts without sandboxing.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T12:23:34.967Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7336e5bf8831d539ed9264
Added to database: 08/05/2026, 13:13:09 UTC
Last enriched: 08/05/2026, 13:29:42 UTC
Last updated: 08/06/2026, 02:57:06 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.