JaaS SIP Gateway Authorization Bypass
The SIP gateway trusted a feature flag inside client-supplied JWTs instead of checking the tenant's real provisioned entitlements. A tenant could therefore place outbound SIP calls even when their subscription did not include that feature.
- Triaged in 9 hours
- Fixed in 11 days
- Paid in 10 hours
- Disclosed after 41 days
Summary by the program
The JaaS SIP gateway endpoint (/sip-jibri-gateway/jibris/invite) validated the sip-outbound-call feature flag from client-supplied JWTs without verifying the tenant's actual provisioned entitlements. This allowed tenants to place outbound SIP calls regardless of their subscription level. Our team promptly validated and addressed the report by implementing server-side entitlement checks to ensure proper authorization enforcement.
We thank @offseq for submitting this report to us.
What the report shows
The target is the JaaS (Jitsi as a Service) SIP gateway, exposed on the *.jitsi.net asset, and specifically the endpoint /sip-jibri-gateway/jibris/invite. That endpoint is the point where a tenant asks the gateway to place an outbound SIP call.
The gateway validated the sip-outbound-call feature flag from client-supplied JWTs. The gateway trusted that claim without checking it against the tenant's actual provisioned entitlements. In other words, the authorisation decision was made from data the caller controls rather than from server-side state.
The consequence described is that a tenant could place outbound SIP calls regardless of their subscription level. The report does not include a request, payload or command, so there is nothing to reproduce here beyond the endpoint path and the flag name.
The program validated the report and addressed it by implementing server-side entitlement checks. The report was rated medium severity with a CVSS score of 5.8, classified as missing authorisation, and paid a bounty of 500.00 USD. It was disclosed on 2026-08-12.
Root cause
The mistake is a trust boundary error: a security decision (may this tenant make outbound SIP calls?) is derived from a token presented by the client instead of from the server's own record of what the tenant has paid for. JWTs are signed, so the gateway can verify that the token was issued by the expected issuer, but a valid signature only proves who the token was issued to and that its contents have not been altered since issuance. It says nothing about whether the claims inside still match the tenant's current entitlements.
The report frames the flaw as missing authorisation: the entitlement check that should have happened on the server was absent. The gateway treated the flag in a client-supplied JWT as sufficient proof of entitlement, without a lookup against the tenant's provisioned entitlements.
Impact
The impact is that tenants could use a paid capability, outbound SIP calling, without the subscription level that should have granted it. That is a business-logic and authorisation bypass rather than a memory-safety or data-exfiltration issue, which fits the medium severity and 5.8 score. The report does not describe any further consequence such as toll fraud, calls to premium numbers, or abuse of the gateway to reach other networks, so those remain speculative. What can be said is that the control separating subscription tiers was not enforced, and the gateway would place calls it should have refused.
How this kind of bug works
Feature flags and entitlement claims are a common way to gate paid functionality. The bug class appears when the gate is evaluated on the client side of the trust boundary: the client presents a token, header, cookie or parameter that carries the flag, and the server acts on it. Three variants recur:
- The flag is embedded in a JWT or signed cookie at login and never re-validated against the backend, so a stale or manipulated claim is honoured.
- The flag is read from a request parameter or header that the client can set freely, and the server does not cross-check it against stored entitlements.
- The check exists on one endpoint (for example the UI or the main API) but not on a secondary service such as a gateway, webhook receiver or media component that shares the same token.
The underlying problem is that authentication (is this a valid tenant?) is confused with authorisation (is this tenant entitled to this feature?). A valid token answers the first question only. Defences are server-side entitlement lookups on every privileged action, treating token claims as hints rather than authority, and keeping the entitlement source of truth in one place that all services query.
How to test for it
A general method for this class:
- Map the paid features and the services that implement them. Look for secondary hosts and paths, such as gateways, media bridges, telephony connectors and webhook handlers, that sit behind the same identity provider as the main application.
- Create two accounts at different subscription levels, ideally one that should not have the feature at all.
- Capture a request that exercises the feature with the entitled account, then replay it with the unentitled account's credentials. A positive result is the feature working for the account that should not have it.
- Inspect tokens and cookies for claims that look like entitlements (feature flags, plan names, tier identifiers, boolean capability fields). Decode them and note which ones the server appears to trust.
- If the token is signed and you cannot forge it, look for other paths: tokens issued before a downgrade, tokens from a trial or free tier, flags settable through profile or settings endpoints, or a second service that accepts the same token but skips the check.
- Confirm the behaviour is server-side by checking that the action actually completes (a call is placed, a resource is created), not merely that a UI element appears.
Common false positives: the feature is genuinely included in the tested tier; the action is queued but rejected asynchronously; the response is a generic success while nothing happens; or the account was provisioned with the entitlement by mistake. Verify with a clean, freshly created account and check the downstream effect, not just the HTTP status.
How it is fixed
The standard fix is to move the decision to the server: on every privileged action, look up the tenant's provisioned entitlements in the authoritative store and enforce them there. Token claims can be used as a fast path only if they are refreshed from that store and invalidated when entitlements change. Secondary services such as gateways should call the same entitlement service rather than trusting the token alone, and the check should fail closed when the lookup errors. Auditing and alerting on calls made by tenants outside their plan helps catch regressions.
Hunting notes
This class tends to hide in services that were built separately from the main billing and entitlement logic: telephony and SIP gateways, media servers, export and reporting jobs, API gateways that front multiple products, and anything that accepts a shared JWT. Recon signals include multiple hostnames under one domain that share an identity provider, endpoints whose paths name a capability (invite, dial, export, provision), and tokens containing plan or feature fields. To make a report land, show the before and after with two accounts, demonstrate the real downstream effect rather than a UI difference, and state clearly which entitlement should have blocked the action. Programs accept these reports when the impact is tied to revenue or to a capability the tenant was explicitly denied.
What happened, in plain words
Jitsi is a video-conferencing product, and JaaS (Jitsi as a Service) is the paid, hosted version that companies use. One of its features lets a customer's system place telephone calls out to the ordinary phone network. The technology behind traditional phone calls over the internet is called SIP, and the component that connects the video platform to the phone network is called a SIP gateway. In this report the gateway lives on the *.jitsi.net domain, and the specific address involved is:
/sip-jibri-gateway/jibris/invite
Think of that path as a specific service window in a large building: it is the place where a customer asks the gateway to start an outbound call.
A customer here is called a tenant: one organisation with its own account and its own subscription level. Not every subscription includes outbound calling, so the gateway has to decide, for each request, whether this particular tenant has paid for the feature. That decision is what security people call authorisation: not "who are you?" but "are you allowed to do this?".
When a user or system talks to a web service, it sends a request, and the request usually carries a token. A token is a small piece of data, often a long string of characters, that the server issued earlier and that the client presents on each request to say who it is. Tokens are usually signed, which means the server can check that it really produced the token and that nobody edited it afterwards. The gateway validated a setting called sip-outbound-call from client-supplied JWTs and treated it as proof that the tenant was entitled to outbound calling. It never checked the tenant's actual provisioned entitlements, meaning the record on the server of what that tenant has really bought.
The everyday comparison: a nightclub doorman checks a stamp on your hand to decide whether you may enter the VIP area. If the stamp is printed on a wristband the club issued, the doorman can tell the wristband is genuine. But if the doorman never looks up whether you actually paid for VIP, and the wristband simply says "VIP" because that is what was written on it when it was handed out, then the stamp proves nothing about payment. The gateway trusted the label on the wristband instead of the club's own list of who paid.
The result was that a tenant could place outbound SIP calls regardless of their subscription level. The report does not include a request, payload or command, so there is nothing to reproduce beyond the endpoint path and the flag name.
The program validated the report and addressed it by implementing server-side entitlement checks. The report was rated medium severity with a CVSS score of 5.8, classified as missing authorisation, and paid a bounty of 500.00 USD. It was disclosed on 2026-08-12.
Why the token was not enough
A signed token answers one question well: was this token issued by us, and has it been changed since? It does not answer whether the claims inside it still match reality. The gateway treated the flag in a client-supplied JWT as sufficient proof of entitlement, without looking up the tenant's provisioned entitlements.
What the impact was
A tenant could use a paid capability, outbound SIP calling, without the subscription level that should have granted it. That is a business-logic and authorisation bypass, not a memory-safety bug or a data leak, which fits the medium severity and the 5.8 score. The report does not describe any further consequence such as toll fraud, calls to premium numbers, or using the gateway to reach other networks, so those remain speculation. What can be said is that the control separating subscription tiers was not enforced, and the gateway would place calls it should have refused.
In general, how this kind of bug works
Feature flags and entitlement claims are a common way to gate paid functionality. The bug appears when the gate is evaluated on the client side of the trust boundary: the client presents a token, header, cookie or parameter carrying the flag, and the server acts on it. Three variants recur:
- The flag is embedded in a JWT or signed cookie at login and never re-validated against the backend, so a stale or manipulated claim is honoured. A JWT (JSON Web Token) is a standard format for such tokens.
- The flag is read from a request parameter or header the client can set freely, and the server does not cross-check it against stored entitlements.
- The check exists on one endpoint, such as the UI or the main API, but not on a secondary service such as a gateway, webhook receiver or media component that shares the same token.
The underlying problem is that authentication (is this a valid tenant?) is confused with authorisation (is this tenant entitled to this feature?). A valid token answers the first question only. Defences are server-side entitlement lookups on every privileged action, treating token claims as hints rather than authority, and keeping the entitlement source of truth in one place that all services query.
How to test for it
A general method for this class:
- Map the paid features and the services that implement them. Look for secondary hosts and paths, such as gateways, media bridges, telephony connectors and webhook handlers, that sit behind the same identity provider as the main application.
- Create two accounts at different subscription levels, ideally one that should not have the feature at all.
- Capture a request that exercises the feature with the entitled account, then replay it with the unentitled account's credentials. A positive result is the feature working for the account that should not have it.
- Inspect tokens and cookies for claims that look like entitlements (feature flags, plan names, tier identifiers, boolean capability fields). Decode them and note which ones the server appears to trust.
- If the token is signed and you cannot forge it, look for other paths: tokens issued before a downgrade, tokens from a trial or free tier, flags settable through profile or settings endpoints, or a second service that accepts the same token but skips the check.
- Confirm the behaviour is server-side by checking that the action actually completes (a call is placed, a resource is created), not merely that a UI element appears.
Common false positives: the feature is genuinely included in the tested tier; the action is queued but rejected asynchronously; the response is a generic success while nothing happens; or the account was provisioned with the entitlement by mistake. Verify with a clean, freshly created account and check the downstream effect, not just the HTTP status.
How it is fixed
The standard fix is to move the decision to the server: on every privileged action, look up the tenant's provisioned entitlements in the authoritative store and enforce them there. Token claims can be used as a fast path only if they are refreshed from that store and invalidated when entitlements change. Secondary services such as gateways should call the same entitlement service rather than trusting the token alone, and the check should fail closed when the lookup errors. Auditing and alerting on calls made by tenants outside their plan helps catch regressions.
Where to look
This class tends to hide in services built separately from the main billing and entitlement logic: telephony and SIP gateways, media servers, export and reporting jobs, API gateways that front multiple products, and anything that accepts a shared JWT. Recon signals include multiple hostnames under one domain that share an identity provider, endpoints whose paths name a capability (invite, dial, export, provision), and tokens containing plan or feature fields. To make a report land, show the before and after with two accounts, demonstrate the real downstream effect rather than a UI difference, and state clearly which entitlement should have blocked the action. Programs accept these reports when the impact is tied to revenue or to a capability the tenant was explicitly denied.
Glossary
- JaaS (Jitsi as a Service): the hosted, paid version of the Jitsi video-conferencing platform.
- SIP: the protocol used to set up and manage traditional telephone calls over the internet.
- SIP gateway: the component that connects the video platform to the phone network and places calls on a customer's behalf.
- Endpoint: a specific address or path on a server that accepts requests, here
/sip-jibri-gateway/jibris/invite. - Tenant: one customer organisation with its own account and subscription level.
- Request: a message a client sends to a server asking it to do something.
- Token: a piece of data issued by a server and presented by the client on later requests to identify itself.
- JWT (JSON Web Token): a standard token format that can carry claims and is usually signed.
- Claim: a statement inside a token, such as a feature flag or plan name.
- Feature flag: a setting that switches a capability on or off for a given account.
- Entitlement: what a tenant has actually paid for, as recorded on the server.
- Authorisation: deciding whether an identified user or tenant is allowed to perform an action.
- Authentication: deciding who a user or tenant is.
- Missing authorisation: a vulnerability class where a permission check that should exist is absent.
- Trust boundary: the line between data the server controls and data the client can influence.
- Business-logic bug: a flaw in the rules of a product rather than in its low-level code.
- CVSS: a standard scoring system for the severity of a vulnerability.
- Bounty: a payment made to a researcher for a valid security report.
- Fail closed: when a check cannot be completed, deny the action rather than allow it.