--- name: cross-feature-workflows description: Map authorized product workflows and investigate security controls across feature and processing boundaries. --- # Cross-feature workflow investigation Inspired by The XSS Rat's [main application methodology](https://github.com/The-XSS-Rat/SecurityTesting/blob/a68ec21186298e63682849731be4861432de5282/Checklists/Main%20app%20methodology.md) and [bug bounty guide](https://github.com/The-XSS-Rat/SecurityTesting/blob/a68ec21186298e63682849731be4861432de5282/Checklists/2026-bug-bounty-guide.md). This is an independently written workflow, not a copy of the repository or a claim that its suggestions establish impact. ## Build an observable product map Within the program's current rules, use the product normally with controlled accounts and data. Record only observed features, requests, roles, object ownership and state changes. Consult available product and API documentation to discover candidate workflows, then check whether the deployed behavior agrees. Separate documented or inferred functionality from what was actually observed; a missing role, paid feature or unavailable account is a coverage gap, not a reason to invent one. For each significant object, record: `object | creator/owner/tenant | input or source | stored state | consumers | actor at each consumer | trust boundary | evidence` Trace handoffs such as create → edit → preview → export, upload → processing → download, record → notification → administration, or configuration → scheduled job → callback. Include alternate clients, versions, asynchronous jobs and integrations only when they are observed or documented and in scope. A parameter name or old URL suggests a question; it does not prove the endpoint exists or is vulnerable. ## Select discriminating experiments For each handoff, write an invariant and compare the same controlled object across its entry and consuming paths. Prioritize sensitive operations, privilege boundaries, durable state and reachable integrations over generic header observations. Examples: - Does an export, preview, search result or notification enforce the same owner, tenant and role boundary as the original record? Compare authorized and unauthorized actors where distinct controlled identities are available. - Does data saved by one feature acquire a different interpretation when later rendered, queried, imported or processed? Trace a harmless unique marker through actual consumers before choosing a context-appropriate proof. A marker's appearance or an outbound callback alone does not establish a specific exploit or impact. - Does an asynchronous operation recheck authorization and state at execution time, including after a controlled permission or lifecycle change? Verify the durable effect, not merely an accepted request. - Does a documented transition remain enforced when the same action is reached through an observed alternate interface? Compare equivalent requests and object states, including a negative control. Use the smallest permitted experiment that distinguishes the hypothesis. Track actor, tenant, object, feature, state, expected result, observed result and evidence. Avoid broad persistent payload placement, unapproved automated scans, real-user data, irreversible changes and third-party callbacks outside the rules. Avoid assuming that similar-looking routes share authorization or that a UI restriction is a server-side control. ## Disposition and handoff For each candidate, test plausible alternatives such as own-data access, legitimate shared membership, stale state, an SPA fallback or a background process unrelated to the request. Mark each handoff tested, pending, blocked or not applicable with supporting evidence. If a second actor or consumer is unavailable, keep that comparison blocked and continue independent work. Before reporting, use `finding-validation` to separate reproduction, demonstrated impact, severity and eligibility. Do not infer Critical/High severity from an integration point or chain idea alone. --- ## Fixtures and controls — set up before tracing anything Cross-feature bugs are proven by comparison, so build the comparison set first and reuse it for every workflow: 1. **Two controlled accounts in different tenants** where the product supports tenancy, plus one low-privilege account inside the owner's tenant. Record each actor's role, tenant and session validity, and confirm each can reach its own baseline resources. 2. **One disposable object per workflow**, created by the owner account, carrying a **unique canary marker per entry point** — a distinct string for the create form, the import path, the API and the mobile client. When a marker surfaces somewhere unexpected, the marker itself names the path that carried it. 3. **Baselines before attacks.** For every consumer of the object (preview, export, notification, search index, admin view, webhook), record what the owner sees, what the same-tenant peer sees, and what the other tenant sees when everything works correctly. A leak is a deviation from that table, not a surprise on its own. 4. **A state log.** Cross-feature failures are often time-dependent: record object state and actor permissions at creation, at each handoff, and at consumption. "It worked at 14:02" is only meaningful against "the share was revoked at 14:01". ## Boundary taxonomy — name what changes at the handoff Every handoff crosses at least one boundary. The boundary tells you which invariant to test and which sibling skill owns the deep pass. | Boundary | What changes across it | Classic failure | | --- | --- | --- | | Rendering context | Stored data is interpreted by a new parser (HTML, email client, PDF, CSV formula, markdown) | Sanitisation applied for the web view is absent in the email/export renderer | | Actor / privilege | A different role consumes the object (admin panel, support tooling, moderator queue) | Consumer assumes "only staff reach this", skips the ownership check the user path has | | Tenant | Object crosses an organisation/workspace edge via sharing, transfer or merge | Check validates membership in *a* tenant, not *the object's* tenant | | Time (async) | Work is queued and executed later by a job, cron or webhook retry | Authorisation and state are checked at enqueue, never re-checked at execution | | Client / version | Same action via web, mobile, API v1/v2, GraphQL | Alternate client reaches an older code path with weaker middleware | | Format / export | Data leaves as CSV, PDF, ZIP, signed URL, print view | Export job runs as a service account and returns objects the requester could not read | | Lifecycle state | Object is deleted, archived, transferred, expired | Consumers keep serving cached, pre-signed or indexed copies after the state change | | Integration | Data leaves to a third party (email, Slack, storage, analytics) and sometimes returns | Outbound leg is unauthenticated by design and the return leg trusts it | ## The differential method Hold the object constant. Vary exactly one thing — the consumer, the actor, or the moment — and compare against the baseline table: | Check | Required observation | | --- | --- | | Entitled control | Owner consumes own canary through the target consumer and sees it | | Cross-actor test | Other-tenant actor reaches the same consumer and must not see the canary | | Same-tenant peer | Peer sees the object only to the extent the sharing policy intends | | Lifecycle repeat | Revoke/delete/transfer, then repeat the consumer request; access must follow current state | | Async repeat | Trigger the queued job *after* the state change; the executed result must reflect the new state | | Negative control | A comparable object the actor was never granted produces a clean denial on the same consumer | A success response is not the observation — the canary's presence or absence in the returned bytes (or the persisted state change) is. Stop and record rate limits, stale sessions and unavailable consumers accurately; an untested consumer stays on the map as a gap. ## Worked example — upload → processing → share → export 1. Owner uploads a document whose body contains canary `CFW-7f3a` (entry-point marker for the upload path). Baseline: owner previews it; peer and other-tenant actors get denials on the document page. 2. The processing pipeline generates a thumbnail and a text extraction. Test the *derived artifacts* directly: derived files frequently live at predictable storage paths with no check at all. Request the thumbnail and extraction as the other-tenant actor. 3. Owner shares the document with the same-tenant peer, then revokes. Repeat every consumer after revocation — page, thumbnail, export, search. Search indexes are the classic straggler: the canary remains findable long after the object is unshared. 4. Owner exports the document as PDF. The export job runs async: note the job ID, revoke the peer's access while it runs, and check whose permissions the finished export honours and who can download the result URL, and for how long. 5. Disposition: the page enforced correctly (tested, negative), the thumbnail path did not (finding, handed to `hunt-idor` for the object-authorisation write-up), search staleness is a lifecycle observation recorded with its window, export honoured revocation (tested, negative). ## False-positive traps - **SPA fallback:** every route returns the app shell with 200. Compare body bytes and content type against a known-nonexistent object before claiming a consumer served anything. - **Legitimate sharing:** the peer's access is the feature working. Re-check the sharing policy and your fixture setup before reporting. - **Eventual consistency:** indexes and caches converge in seconds to minutes. Measure the window; report a stale window as its own (lesser) observation, not as a permanent bypass, unless it never converges. - **Own-data echo:** the consumer returned the *actor's own* object — the server ignored your object reference. Compare canary strings, not status codes. - **Unrelated background process:** a notification or digest that includes the canary may be a periodic job running on old state, not the consumer you triggered. Correlate timestamps with your state log. ## Impact framing Rate the **end consumer's effect**, not the number of handoffs. A canary read by another tenant is the object-authorisation impact of the underlying data class (frame it per `hunt-idor`); a stored marker that only fires in an admin renderer is an XSS whose impact is the admin session's authority (frame it per `hunt-xss`). The workflow map is the evidence that the path is real and reachable by an ordinary user — that reachability, demonstrated end to end, is what separates a chain-grade finding from a theoretical one. Never inflate: if the final consumer's effect is unproven, the chain is conditional and the report says so. ## Reporting checklist ``` [ ] Product map recorded: object, owner/tenant, source, consumers, actor at each consumer, boundary crossed at each handoff [ ] Baselines captured per consumer before any test [ ] Unique canary per entry point; surfacing marker identifies the path [ ] Differential run per consumer: entitled, cross-actor, peer, lifecycle repeat, async repeat, negative control [ ] Each handoff dispositioned: tested / pending / blocked / n/a, with evidence [ ] False positives excluded: SPA shell, legitimate sharing, consistency window measured, own-data echo ruled out [ ] Impact framed by the end consumer's demonstrated effect [ ] Untested consumers listed as coverage gaps, not silently dropped ``` ## Chain handoffs - Object reachable by the wrong actor at any consumer → `hunt-idor` - Marker interpreted by a downstream renderer → `hunt-xss` (web/email), `hunt-ssti` (template consumers), CSV/formula consumers → `hunt-api` - Server-side fetch anywhere in the pipeline → `hunt-ssrf` - Multi-edge escalation assembled from proven handoffs → `chain-reasoning`; validate the final report with `finding-validation`