A non-administrator user or a scoped API key with `create events` and `run events` privileges can inject top-level `uid` and `gid` fields. This occurs via the '/api/app/create event' and '/api/app/update event' endpoints. The `requireValidEventData` function in `lib/api.js` utilizes `validateOptionalParams` as a partial allow-list that silently permits unknown keys, which are then stored verbatim. Subsequently, the `launchJob` function in `lib/job.js` copies the entire event into the job. Because the default `shellplug` and `urlplug` plugins do not define a `uid`, the injected identity is maintained during the child-process launch. On installations running as a root-daemon, this allows low-privileged users to execute jobs as arbitrary users, including root, bypassing administrator-only controls.