فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
docs(holoo): triage eight public EXECUTE DML candidates
Davood Mehraban committed
Nov 22, 2026 at 22:23 UTC
022cecec896614f8fd412cfef3447e1f309b6053
2 files changed
+36
docs/holoo-lab-public-execute-triage.md
new
+26
@@ -0,0 +1,26 @@
1
+# Public EXECUTE risk triage — LAB, 2026-11-22
2
+
3
+**Status: NO-GO.** Read-only catalog inspection of `ARAM\TNC` / `HolooBackup_050808_LAB_20261110`. No stored procedure executed and no SQL grants or data modified.
4
+
5
+## Observed evidence
6
+
7
+- 31 `public` EXECUTE grants, all 31 module definitions visible.
8
+- Eight definitions contain DML keywords (`INSERT`, `UPDATE`, `DELETE`, `MERGE`, or `TRUNCATE`):
9
+ - `dbo.dt_adduserobject`
10
+ - `dbo.dt_adduserobject_vcs`
11
+ - `dbo.dt_checkoutobject`
12
+ - `dbo.dt_droppropertiesbyid`
13
+ - `dbo.dt_dropuserobjectbyid`
14
+ - `dbo.dt_isundersourcecontrol`
15
+ - `dbo.dt_setpropertybyid`
16
+ - `dbo.dt_setpropertybyid_u`
17
+- These are **textual signals**, not proof of executed writes; comments, unreachable branches, and quoted strings can cause false positives. Conversely, dynamically constructed SQL can evade detection.
18
+- Catalog query `sys.sql_expression_dependencies` returned zero edges for the examined grant set. **Zero edges is not proof of no nested calls**; metadata visibility, legacy definitions, and dynamic SQL can limit results.
19
+- `public` also has direct DML grants on `dbo.dtproperties`; a principal with only explicitly granted SELECT on invoice tables is not necessarily database-wide read-only.
20
+
21
+## Security decision
22
+
23
+1. Do not provision or approve a dedicated read-only account yet. The current runtime permission gate examines three invoice tables and common elevated roles, but **does not establish database-wide non-mutability**.
24
+2. Review the eight procedure bodies and their invoked procedures manually, then the other 23 definitions; investigate ownership chaining and dynamic SQL.
25
+3. Independently inventory effective privileges of a proposed non-admin Windows principal, including inherited `public`, Windows groups, server-level grants, and executable procedures. This requires a specifically authorized isolated test and rollback plan.
26
+4. Maintain production writes as **NO-GO**. No changes to SQL principals, privileges, services, or Holoo records are authorized by this report.
tests/holoo-lab-public-execute-triage.test.mjs
new
+10
@@ -0,0 +1,10 @@
1
+import test from 'node:test';
2
+import assert from 'node:assert/strict';
3
+import {readFileSync} from 'node:fs';
4
+import {fileURLToPath} from 'node:url';
5
+const path=fileURLToPath(new URL('../docs/holoo-lab-public-execute-triage.md',import.meta.url));
6
+test('public execute triage documents eight candidates and explicit blockers',()=>{
7
+ const text=readFileSync(path,'utf8');
8
+ for(const name of ['dt_adduserobject','dt_adduserobject_vcs','dt_checkoutobject','dt_droppropertiesbyid','dt_dropuserobjectbyid','dt_isundersourcecontrol','dt_setpropertybyid','dt_setpropertybyid_u']) assert.ok(text.includes(name),name);
9
+ for(const item of ['NO-GO','textual signals','not proof','dbo.dtproperties','No stored procedure executed']) assert.ok(text.includes(item),item);
10
+});