User input as CLI argv¶
Source: GitHub advisory wave published 2026-09-17T18:32-19:05Z (plus a critical updated-feed resurfacing at 19:05Z). A sibling MISP finding (Overmind statistics legend stored XSS) is folded into the Sept 7 MISP page.
This batch is durable because all three entries are the same meta-pattern in different runtimes: user-controlled fields that arrive at a structural sink, a command-line dispatcher, a multitenant metadata endpoint, or an OS file-staging path, where the framework, not the app, does the dangerous interpretation.
What changed¶
| Advisory | Component | Boundary | Operator value |
|---|---|---|---|
| GHSA-2q9g-8hcw-6c23 | MISP (events/contact form → background job dispatch) | Job arguments are passed directly as argv of the CakePHP console process. ShellDispatcher::_parsePaths() scans the entire argv for path switches (-app, --app, -working, --working, -root, --root, -webroot, --webroot) and takes the next element as the application root. The contact endpoint forwards the user-controlled person and message fields into job arguments unvalidated → set person=-app, message=phar://<uploaded archive> → bootstrap includes Config/core.php from the attacker's archive → deterministic unauthenticated RCE as the web user | The reserved-flag-in-argv class: any feature that concatenates user fields into a CLI invocation must be tested against the invoked framework's own option grammar, not the app's. PHAR-deserialization bootstrap includes are the PHP execution leg |
| GHSA-955m-rr6m-2f9v / CVE-2026-76969 | @sap/cds-mtxs (SAP CAP multitenancy library) < 1.18.4, 2.x < 2.7.7, 3.x < 3.9.7, 4.0.1-4.0.2 (critical) | With extensibility enabled, certain mtxs endpoints lack sufficient checks: an unauthenticated attacker sends crafted requests to obtain tenant credentials, then abuses them to replace/delete tenant data (high integrity/availability impact, partial confidentiality) | Multitenant SaaS plumbing libraries expose a tenant-credential API surface that is often outside the app team's threat model. Audit question for any CAP/mtx-style stack: which endpoints mint or return per-tenant service credentials, and what authenticates them? |
| GHSA-x3gc-cx3q-fw5m | Verizon Cloud for Android (com.vcast.mediamanager) < 26.7.10 (medium) | Exported activities OneTouchUploadActivity / PrintShopCloudActivity accept ACTION_SEND(_MULTIPLE) intents; the file-staging sink concatenates the intent-supplied _display_name without sanitization → path traversal out of the staging dir, arbitrary file write → attacker-controlled content injected into the authenticated user's cloud account with no user interaction | Android co-resident-app attack surface: exported activity + Intent-extras filename = classic unsanitized-filename file-write sink, reachable by any installed app without permissions. Mobile-recon heuristic: enumerate exported components (dumpsys package / aapt dump xmltree) and fuzz filename-ish extras (_display_name, title, name) with ../ markers |
Operator validation patterns¶
1. Framework-option injection in delegated argv (MISP pattern)¶
- Find every sink where app code spawns a console/CLI process with fields that include user input (job queues, export jobs, report generators, webhook relays).
- Do not test for shell metacharacters, the spawn is usually array-based (
execve, no shell). Test the invoked framework's option grammar instead: for CakePHP consoles send-app/--app/-root/-webrootin one field and a controlled path/URI in the neighbor field; for other frameworks enumerate their dispatcher's switches the same way. - PHP targets: pair a path-switch with a
phar://pointer at an archive you can upload somewhere on the host (avatar/attachment fields are common); the execution leg is the bootstrapincludeof a config file inside the archive. Non-PHP targets: pair the switch with any file-read/import sink the CLI supports. - Proof discipline: lab MISP/CakePHP only, synthetic archive with an inert marker in
Config/core.php, and confirm at import time (log/marker), not on shared tenants. Never drop real PHP shells on engagements, stop at the include-triggered marker.
2. Tenant-credential endpoint sweep (SAP cds-mtxs pattern)¶
- On any multitenant platform with an extension/tenancy sidecar library (CAP mtxs, multi-tenant OAuth bridges, extensibility services): enumerate routes that mention
tenant,subscribe,credentials,extension,boundand test them unauthenticated and with cross-tenant tenant IDs. - The reportable finding is credential issuance/return to an unauthorized caller; stop before using any obtained credential against other tenants' data (replace/delete is out of bounds outside an approved lab).
- Version fingerprinting matters here: the library version is often reflected in response headers or error shapes of
/mtxroutes, a cheap recon signal that the app runs an unpatched train.
3. Exported-component filename fuzz (Android pattern)¶
- Static recon: list exported activities/providers; flag any handling
ACTION_SEND*(share targets) since they accept extras from arbitrary apps by design. - Dynamic proof with two test apps you control (or
adb shell am startas the co-app proxy): sendACTION_SENDwithClipData+_display_name=../../markerand confirm the write lands outside the staging dir using a synthetic marker file in a world-readable location. - Impact framing for reports: co-resident malicious app → arbitrary write into the target app's storage → content injection into the victim's cloud account without user interaction; do not demo against real user accounts.
Durable operator value¶
- argv is a parser target, not just a string sink. Array-exec eliminates shell injection but leaves the program's own flag grammar exposed. Audit = read the dispatcher's option table, then test each reserved switch against neighbor-field control.
- Three runtimes, one shape: framework dispatcher (CakePHP), tenancy library (cds-mtxs), and OS intent delivery (Android exported activity) all trusted an upstream field that the platform interprets structurally. Wherever the platform interprets, the app's validation vocabulary is the wrong vocabulary.
- PHAR-in-bootstrap is still the PHP RCE leg for "path switch + uploadable archive" primitives, treat any attacker-influenced "application root" as a code-execution candidate, not a read primitive.
Safety¶
- Authorized lab instances only for the MISP/CakePHP and CAP proofs; inert archive markers, synthetic tenant IDs, no real tenant credentials captured or replayed.
- Android testing on your own device profile with your own test app and marker files; never target another user's account or install surveillance payloads.
- Keep credentials, tenant identifiers, and device data out of wiki and report evidence.
September 22 follow-up: MISP ships the phar wrapper with zero legitimate use (wrapper-audit rule)¶
- CVE-2026-95806 / GHSA-8rgx-3gvf-26gg (high): MISP registers PHP's phar stream wrapper in both its web and console entry points, yet no MISP/CakePHP/runtime code ever reads or constructs phar archives. Consequences: any filesystem operation on a caller-influenced path that resolves to an uploaded
.phartriggers implicitunserialize()(deserialization sink), and a relocated app root (see the-appargv leg above) can reach executable code inside an uploaded phar. Operator rule generalized from this advisory: on any PHP target, treat wrapper availability as attack surface inventory, probe whetherphar://is accepted at file-existence/read/unlink sinks (file_exists('phar://…')timing/popcheck shapes), and in source audits, flag registered wrappers with no legitimate consumer; a wrapper nothing uses is a primitive only an attacker uses. Combine with the two legs already on this page (argv path switch + upload) for the full chain, prove only in a lab instance with an inert archive marker.
October 7 follow-up: site-admin settings turn MISP workers into a client of attacker Redis (CVE-2026-106513 / GHSA-j4wg-24xp-wq96)¶
MISP exposes its Redis host addresses (core app, ZeroMQ plugin, SimpleBackgroundJobs plugin) through the web UI/API to site-admin users, and the background-job workers trust raw Redis job payloads with no validation. A hijacked site-admin session (e.g. via stored XSS) can repoint the Redis host setting at an attacker-controlled Redis server, restart the workers, then inject job payloads the workers execute → arbitrary command execution as the worker account. The same interface also flipped download_attachments_on_load back on for follow-on client-side attacks.
- Durable axis: configurable connection targets in admin UIs are SSRF/RCE legs whenever a worker/service later dials them. The admin setting itself looks benign (it only stores a host), so route-audits that only trace request-time fetchers miss it. Audit rule for any job-queue/middleware product (Redis, RabbitMQ, Kafka broker fields, webhook hosts, SMTP relays stored in tenant config): trace which daemon dials the stored target later, and whether the protocol on that leg carries executable semantics (job payloads, pickle/JSON-deserializing consumers, plugin-loading brokers). A Redis server the workers will connect to is a code-execution endpoint.
- Second reusable idea: settings-inventory as post-compromise primitive list. After obtaining any low/mid-tier admin session on a self-hosted platform, enumerate writable settings that name a network destination or a client behavior toggle (attachment auto-load, auto-redirect, external fetch), the pivot chain is setting-write → service-dials-attacker → payload-executes, not just data read. Prove only on a lab MISP with an owned Redis listener and an inert job payload marker; never against shared threat-sharing instances.
October 7 follow-up (16:1xZ): forced-TOTP guard only understands browser redirects, every machine request shape walks past it (CVE-2026-107180 / GHSA-jgf2-xf9x-w72j, high, fixed 2.5.48)¶
On MISP instances with Security.otp_required, the mandatory-TOTP-enrolment guard was implemented for standard browser requests only: enforcement worked by redirecting the user to the enrolment page, and every non-browser request shape, AJAX/XHR, REST API, .json format suffixes, restSearch, automation calls, cannot follow that redirect, so the guard skipped the check entirely. An authenticated user who never enrolled could operate with full instance access indefinitely through machine-shaped requests. The first fix added an AJAX-specific guard; the second broadened it to every non-browser shape while preserving the API-key (logged_by_authkey) exemption.
Durable rule, generalizes past MISP: any security gate implemented as a browser redirect is bypassed by declaring a non-browser request shape, X-Requested-With: XMLHttpRequest, Accept: application/json, format-suffix routes, GraphQL, API tokens. For every forced-flow control a product implements (mandatory 2FA enrolment, password change, EULA, consent, onboarding), build a request-shape matrix: browser GET vs XHR vs JSON-suffix vs REST endpoint, same session cookie, and diff enforcement. Second leg of the rule: the fix history is the test plan, first-fix-covers-one-shape (AJAX), second-fix-covers-all-shapes is the canonical drift; when re-testing a "fixed" forced-flow guard, lead with the shapes the first fix didn't name.
November 12 follow-up: MISP Modules website, one forgot-the-gate bug hides its own credential leak (CVE-2026-127016 + CVE-2026-127046 / GHSA-h3wj-j4hx-vx4c, GHSA-45x6-9mh2-48pq, both critical)¶
The MISP Modules website sub-app (the external_tools Flask blueprint, separate from the MISP core already covered on this page) shipped two criticals in one commit pair. ADMIN_PASSWORD was documented as an optional administrator authentication policy, and the module-configuration endpoints honored it, but the external tools management handlers (add, delete, change status, change configuration) processed anonymous requests with zero authorization checks whenever an admin password was set. An unauthenticated attacker could register arbitrary external tools, delete existing ones, toggle active status, and rewrite configurations including API keys and ingestion URLs. The sibling critical: /external_tools/list returned each tool's stored api_key in its JSON response, and the edit form pre-populated the key into the DOM, so any network-reachable client harvested the instance's credentials for every configured external enrichment/analysis service, enough to impersonate the MISP instance or use those services directly. The fix also removed the change_config requirement that the key be resubmitted on every save, which had forced the credential to round-trip through the browser.
Durable rules:
- Per-handler authz sweep on optional-auth apps. When a product's admin gate is conditioned on a config flag ("only enforce if ADMIN_PASSWORD set"), test every management handler with the flag set, not one representative. Per-CGI/per-blueprint gate inventories are this wiki's recurring forgot-the-gate family (SureLine radarUpdater Oct 28, Nginx UI router registration Oct 9); this leg adds the twist that the gate existed in the same blueprint and was honored by sibling handlers, so route-audit-by-file gives false coverage. Decision table: handler × auth-mode × enforcement.
- Credential round-trip is the second finding. When you find an unauthenticated write endpoint on a config object, immediately check the read endpoint and the edit form for secret echo (
listJSON, pre-populated form inputs, client-side reactive state). Management CRUD panels that force secrets to appear in responses are a standing leak class independent of the authz bug; report both, the leak upgrades an integrity bug to credential disclosure. - Tool-registry as SSRF/fetch pivot. External-tool configs carry ingestion URLs the server later fetches with the stored API key. Registering a tool is therefore a stored outbound-fetch write (server-dials-stored-target rule from the Oct 7 Redis leg on this page), prove with an owned callback URL in the ingestion field, never against shared threat-sharing instances.
November 18 follow-up: MISP's search paths never apply the element ACL, prefix matching turns search into a character-by-character oracle for hidden attributes (5 legs, CVE-2026-132636 / GHSA-mh3v-w45f-24mx, CVE-2026-132637 / GHSA-rj5v-884f-qx78, CVE-2026-132641 / GHSA-mjq6-r62f-5pqr, CVE-2026-132642 / GHSA-r295-w87q-m4qc, CVE-2026-132643 / GHSA-qmpj-rw2f-69jj, published Nov-18 21:31Z, reported by ENISA)¶
A coordinated five-advisory wave on MISP core, all one class: the read/fetch paths enforce per-attribute and per-event visibility ACLs, the search/filter/auxiliary paths re-implement the query without them. Event-level visibility got checked; element-level distribution (organisation-only, sharing-group-restricted, soft-deleted) did not propagate into subqueries.
- restSearch is a hidden-attribute oracle with prefix search (132636):
events/restSearch(value, value-prefix, searchall, type, uuid, attribute-tags, object filters),objects/restSearch, and the event index tag/galaxy/quick filters ran SQL subqueries against attributes/objects with no distribution, sharing-group, or soft-delete filter. A user who can see any part of an event can test whether an organisation-only attribute exists inside it, and because the value filter isLIKEprefix matching, enumerate a hidden attribute's full value one character at a time. Tags attached only to hidden attributes leak through the index filter paths. - Correlation results skip the queried-event check (132637):
correlations/eventCorrelationsnever verified the caller could view the requested event ID; any authenticated user passes an org-only event ID and receives its full correlation results including attribute identifiers and values. The Default/OnDemand correlation engines filtered only the target side of each correlation row, never the queried side. - Unscoped
find(recursive => -1)on tag mutations (132642):events/addTag,events/removeTag,attributes/removeTagloaded targets with ACL-blind queries, giving (a) a tag-presence oracle on events the caller cannot see (differential responses) and (b) host-org users writing local tags onto invisible events and attributes. The fix swaps to ACL-aware fetchers plus an empty-object check so hidden-vs-nonexistent respond identically, the canonical indistinguishability fix. - Delegation accepts any
sharing_group_id(132641):delegateEventstored the caller-supplied group ID unvalidated and the delegation view rendered that group's name back, so aperm_delegateuser enumerates sequential IDs to name hidden/restricted sharing groups they are not members of. - Sighting anonymization defeated by caller-supplied
org_idfilter (132643): withSightings.anonymiseon,listSightings/sightings/restSearchapplied the caller'sorg_idfilter directly in SQL with no authorization, letting a non-site-admin invert the reporter-masking guarantee.
Durable rules:
- Search is a separate implementation of read, and drift is where ACLs die. For any product with both fetch-by-id and search/filter endpoints, build a decision table: same object class × {detail route, search route, filter param, aggregate/correlation route, export route} × {distribution level, sharing group, soft-deleted}. Every route family that re-derives the SQL instead of reusing the authorized fetch is a candidate. This page's Oct 7 forced-TOTP request-shape matrix generalizes: the axis here is query entry point, not request shape.
- Prefix matching plus an existence oracle equals full-value extraction. Any
LIKE 'x%'-style filter that answers "does a hidden value start with this" is an enumeration channel, budget O(charset x length) queries. When reporting, demonstrate 3-5 characters of a synthetic hidden value, not the whole extraction. - Filtering only one side of a relationship query is a classic miss. Correlation/join/edge endpoints must vet the requested object's visibility, not just the returned counterparties.
- Server-rendered echo of caller-supplied foreign keys is a disclosure primitive. A stored ID that the UI later resolves to a name (sharing group here) is an enumeration oracle even when contents stay hidden, audit every parameter that survives write→render as a resolved label.
- Anonymization/masking features need authorization on their own filter params. A feature whose purpose is hiding field X must reject caller-supplied filters on field X (or its inverse), test masking controls by attacking their filter surface.
- Sixth leg, same wave: login-email self-change hijacks the external-directory identity binding (GHSA-hprw-9pvx-h67v / CVE-2026-132144 high): with LDAP/Shibboleth/ApacheSecureAuth/CustomAuth configured, the login email is the key the directory resolves for identity, org, and role on every login, but
__canChangeLogin()only checkedMISP.disable_user_login_changeand site-admin status, never whether an external backend was active. Any authenticated non-admin (org admins included) rewrites their own login to a higher-privilege directory account's email; the next login resolves them to that identity's org and role. Rules: (a) when a local profile field is also the lookup key for an upstream authoritative identity, treat writes to it as identity-graph edits, the guard must account for every auth backend that could later consume the field, per-field mutability checklists written for the local DB are the usual miss; (b) test deferred-identity-trigger legs: change field now, re-authenticate later, diff org/role/permissions against the pre-change session, this is the identity-carrier twin of this page's deferred-trust pattern; (c) fingerprintdisable_user_login_change-style kill-switch config as the vendor's own admission the field is dangerous. Proof: two-user lab instance with a lab LDAP directory, canary org-admin DN, marker attributes in the target's MISP profile. Never target real threat-sharing instances or directory accounts. - Proof discipline: two-user lab MISP (org A full member, org B community-only), synthetic events with org-only/sharing-group/soft-deleted attributes carrying marker values; the positive is org B's restSearch prefix probe hitting org A's marker while the detail route denies. Never query real threat-sharing instances or other tenants' events.
October 21 follow-up: vendor binder HALs as uid-0 shell channels, OxygenOS two-path root chain (CVE-2026-70386 / GHSA-mmh8-7mj5-vp22, CVE-2026-70387 / GHSA-cwgc-9268-23h4, both high)¶
Two OnePlus OxygenOS advisories show the vendor HAL layer as a distinct Android attack surface from exported activities, with the same shape on both paths: a vendor binder service that ends in /vendor/bin/sh or system() with a caller-supplied string, gated only by a uid check that SELinux makes reachable from far more domains than intended.
- Path 1 (
atlasservice, CVE-2026-70386): any locally installed app with zero permissions callssetEvent(name, value)on the Binder interface with no authorization; one event handler copies the value into the system propertyoplus.audio.dumpinfo.typeand starts the root init serviceaudiodumpinfo, which passes the property unsanitized intosystem()→ arbitrary shell as uid 0 in thedumpstateSELinux domain. Chain = unauthenticated binder write → property write → root init trigger → shell. - Path 2 (
olc2logging HAL, CVE-2026-70387): a binder methodfork()s andexecls/vendor/bin/sh -c <caller string>; the only check isgetCallingUid() == 0. But SELinux grants binder-call permission to this HAL to a wide client attribute that includesdumpstate, itself reachable from an unprivileged app via a companion bug, so any uid-0 process in any permitted domain gets command execution landing invendor_qti_init_shell, a domain holding all Linux capabilities via a policytype_transition.
Durable mobile-recon rules (extending the exported-activity pattern above): 1. Enumerate vendor HALs, not just exported components. service list / dumpsys -l on a rooted test device, then lshal and the device's VINTF manifest; for OEM firmware, the vendor SELinux policy + HAL .rc files are readable out of the factory image. Flag any HAL whose handler writes a system property or starts an init service, property-triggered root services are a two-hop binder→root channel. 2. A uid check is not an authorization boundary when SELinux decides who can call you. getCallingUid()==0 only bounds which callers win once they arrive; audit the binder_call rules for the HAL's domain, every attribute granted call permission (dumpstate-style wide attributes are common) is an attacker foothold candidate via any other uid-0 bug. Decision table: caller uid × SELinux domain × final sink. 3. Spawned-shell SELinux context is the real impact statement. type_transition landing domains (vendor_qti_init_shell with all capabilities) can exceed the caller's own domain's power, report the transitioned domain's capability set, not just "uid 0". 4. Same invariant as this page's headline: the platform (property service, init, SELinux) interprets a field structurally that the app/HAL treats as data. Prove only on your own device profile with id/getenforce marker output; never flash or exploit third-party devices.
Sources: GHSA-2q9g-8hcw-6c23 · GHSA-955m-rr6m-2f9v · CVE-2026-76969 · SAP note 3798315 · GHSA-x3gc-cx3q-fw5m · GHSA-8rgx-3gvf-26gg · GHSA-j4wg-24xp-wq96 · GHSA-jgf2-xf9x-w72j