Skip to content

Commit da492ff

Browse files
committed
Security fix: escape rule and device data in the web UI (1.9.17)
1 parent 3fbbc48 commit da492ff

4 files changed

Lines changed: 30 additions & 3 deletions

File tree

‎RELEASE_NOTES.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# Release Notes
22

3+
## v1.9.17 - Security fix
4+
5+
Fixes a cross-site scripting issue in the web interface. Upgrading is
6+
recommended, especially if you import rules from backups or templates you did
7+
not create yourself.
8+
9+
### Upgrading to 1.9.17
10+
11+
The `signed_*.eap` packages install normally on AXIS OS 12.10 and later, as an
12+
in-place upgrade from v1.9.14 or later. Rules, settings and variables are kept.
13+
Upgrading from v1.9.13 or earlier needs an uninstall first (export your rules
14+
before); see the v1.9.15 notes below.
15+
16+
### Fixes in 1.9.17
17+
18+
- **Imported rules can no longer run script in the browser.** Some values from
19+
rules were inserted into the web page without escaping: the rule ID in the
20+
rules list buttons, about 70 fields in the rule editor (ports, channels,
21+
durations, scenario IDs and similar), and variable names on the Variables
22+
tab. An imported rule keeps its own ID and these fields are not type-checked,
23+
so a crafted rule file could run script with the logged-in admin's rights as
24+
soon as the rules list was shown. All such values are now escaped, including
25+
values loaded from remote devices. Verified on a device with a deliberately
26+
crafted rule and variable: both display as plain text and nothing runs.
27+
- **MQTT status text.** A broker host name containing `&` or `<` was shown with
28+
HTML entities (`&amp;`) in the Settings status line.
29+
330
## v1.9.16 - Bug fixes
431

532
Fixes for six bugs, all reproduced on a real device (AXIS P3288-LV, AXIS OS 12.11)

‎app/html/openapi.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"info": {
44
"title": "ACAP Event Engine",
55
"description": "REST API for the Axis Event Engine ACAP — an If-This-Then-That style rule engine running on Axis cameras.\n\nAll endpoints are served via FastCGI at `/local/acap_event_engine/{endpoint}` and require HTTP Basic Auth with admin credentials.\n\n### Template Variables\nAction strings (URLs, payloads, messages, overlay text, etc.) support `{{...}}` substitution:\n\n| Variable | Value |\n|----------|-------|\n| `{{timestamp}}` | RFC 3339 timestamp in device local time (e.g. `2026-04-30T13:00:00+02:00`) |\n| `{{date}}` | YYYY-MM-DD |\n| `{{time}}` | HH:MM:SS |\n| `{{camera.serial}}` | Device serial number |\n| `{{camera.model}}` | Device model name |\n| `{{camera.ip}}` | Device IP address |\n| `{{trigger_json}}` | Full trigger event data as compact JSON |\n| `{{trigger.KEY}}` | Individual field from the trigger event |\n| `{{var.NAME}}` | Named variable value |\n| `{{counter.NAME}}` | Named counter value |\n| `{{trigger.snapshot_base64}}` | Base64 JPEG (when `attach_snapshot` is true on HTTP Request, Email, MQTT Publish, Slack, Teams, or Telegram actions) |\n\nNumeric formatting: `{{trigger.KEY|N}}` rounds a numeric field to N decimal places — e.g. `{{trigger.Temperature|2}}` → `20.35`\n",
6-
"version": "1.9.16",
6+
"version": "1.9.17",
77
"contact": {
88
"name": "GitHub",
99
"url": "https://github.com/Mo3he"

‎app/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"vendorId": "70ee172dd9",
99
"vendorUrl": "https://github.com/Mo3he",
1010
"runMode": "respawn",
11-
"version": "1.9.16",
11+
"version": "1.9.17",
1212
"compatibleOsVersions": [
1313
{
1414
"min": "11.11",

‎docs/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@
937937
<div class="hero-content">
938938
<a href="https://github.com/Mo3he/Event-Engine-ACAP/releases/latest" target="_blank" rel="noopener" class="hero-badge" id="hero-badge-link">
939939
<span class="hero-badge-dot"></span>
940-
<span id="hero-version">v1.9.16 - Bug fixes</span>
940+
<span id="hero-version">v1.9.17 - Security fix</span>
941941
</a>
942942
<h1><span class="gradient">Automate your</span><br>Axis <span class="hero-word" id="heroWord">camera</span></h1>
943943
<p class="hero-sub">

0 commit comments

Comments
 (0)