# jitsi-meet: Prosody/Jigasi missing header whitelist in mod_filter_iq_rayo allows arbitrary SIP header injection and Caller ID spoofing

Prosody's mod_filter_iq_rayo used a 3-entry blocklist instead of a whitelist, letting authenticated users inject arbitrary SIP headers like P-Asserted-Identity into Jigasi INVITEs for Caller ID spoofing.

- Payout: $100
- Severity: low
- Program: 8x8
- Found by: pmgjoe
- Disclosed: 2026-07-02
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/3789570
- Library page: https://bugbountylibrary.com/r/h1%3A3789570
- Tags: area:web domain:web impact:integrity kind:bounty platform:hackerone sev:low tech:rest technique:incomplete-fix technique:source-review vuln:auth-bypass

**Target:** Prosody mod_filter_iq_rayo.lua / Jigasi CallControl.java / SipGatewaySession.java
**Root cause:** Prosody filter stripped only three named internal headers (blocklist) rather than whitelisting allowed headers, and Jigasi's CallControl.java stored all remaining client-supplied headers in extraHeaders without validation, which SipGatewaySession.java injected raw into outbound SIP INVITEs.
**Steps:**
1. Authenticate to Jitsi with outbound-call privileges.
2. Send a Rayo `<dial>` IQ stanza to Prosody containing extra headers such as `P-Asserted-Identity` and `Remote-Party-ID`.
3. Observe mod_filter_iq_rayo.lua strips only `X-outbound-call-initiator-user`, `X-outbound-call-initiator-group`, and `JvbRoomName`, forwarding the rest.
4. Jigasi CallControl.java stores the headers in `extraHeaders`; SipGatewaySession.java injects each into the outbound SIP INVITE.
5. Resulting INVITE carries attacker-chosen Caller ID headers, spoofing identity to the SIP peer.
**How found:** Code review of the Prosody filter revealed it was a blocklist of three specific header names rather than a whitelist, prompting a trace through Jigasi's CallControl.java and SipGatewaySession.java to confirm unfiltered propagation into SIP INVITEs.
**Exploitation:** An authenticated user with outbound-call rights submits a Rayo dial stanza with arbitrary SIP headers; Jigasi forwards them verbatim into the outbound INVITE, spoofing Caller ID (P-Asserted-Identity/Remote-Party-ID) where Jigasi is a trusted SIP peer.
**Insight:** When a filter enumerates bad values (blocklist) instead of allowed values (whitelist), trace every downstream consumer of the unfiltered data; here the SIP INVITE builder was the sink that turned a missing whitelist into protocol-level header injection.

