Skip to content

fix(jobs-agent): validate relay message sender before dispatch - #1393

Open
Cr0wTom wants to merge 3 commits into
mainfrom
thomassermpinis/vuln-6325-fuzzyfuzzer-agentp0-jobs-sender-validation-relay-messages
Open

fix(jobs-agent): validate relay message sender before dispatch#1393
Cr0wTom wants to merge 3 commits into
mainfrom
thomassermpinis/vuln-6325-fuzzyfuzzer-agentp0-jobs-sender-validation-relay-messages

Conversation

@Cr0wTom

@Cr0wTom Cr0wTom commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

The jobs agent dispatched relay JobNotify/JobExecution/JobCancel without checking msg.from — any relay entity that can address the Orb in the jobs namespace could run privileged jobs or cancel live ones.

Fix: new is_authorized_sender (Service + configured target_service_id + configured relay_namespace) evaluated before any payload decode; anything else is dropped with a bounded, escaped rejection log (payload never logged). Fleet-safety basis: the relay routes by identity triple and a client sends with the identity it connected as, so the job-server provably owns the configured triple — otherwise the agent's own JobRequestNext would never reach it today. Sender-label authenticity itself is relay-server work (SEC-2708).

Tests: authorization matrix + payload classification units; adversarial integration tests (second relay client as unexpected-service, and fleet-cmdr with the wrong entity type) assert the rejection log fires, the rejected job never runs, and the agent keeps serving the legitimate server. Full suite green natively.

Mitigates: VULN-6325 (fixed); external disclosure report (Sep 2026), sender-validation finding. Complements SEC-2708.

@Cr0wTom
Cr0wTom requested a review from a team as a code owner September 4, 2026 07:02

@vmenge vmenge left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

valve plz fix
image

Comment thread orb-jobs-agent/src/job_system/client.rs Outdated
Comment thread orb-jobs-agent/src/job_system/client.rs Outdated
Comment thread orb-jobs-agent/src/job_system/client.rs Outdated
Comment thread orb-jobs-agent/src/job_system/client.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants