3CX v20 – Security concerns regarding XAPI and OAuth2 endpoints

danielino1981

Customer
Joined
Apr 14, 2021
Messages
34
Reaction score
1
Hello,

During a security assessment of our 3CX installation (version 20.0.9.0), the following security concerns were identified:

  • The /xapi/v1/$metadata endpoint is publicly accessible without authentication, exposing the full API data model, including 148 entity types, sensitive field names and administrative actions.

  • The /connect/token OAuth2 endpoint is publicly accessible without authentication, with potential client_id enumeration through different HTTP responses (401/403). This behavior has yet to be independently verified.
Please note that Administrative Console IP restrictions are enabled and no API Service Principals are configured.

We have also confirmed that the XAPI metadata endpoint remains accessible from unauthorized IP addresses.

Could you please confirm whether these behaviors are expected and whether there is an officially supported method to restrict access to these endpoints?

Our goal is to improve the security of our PBX without affecting the normal operation of IP phones, remote SBCs, 3CX applications or the Web Client.

We would also like to know whether these security concerns are already known to your development team and whether any security improvements are planned in future updates.

Thank you in advance for your assistance.

Best regards,
 
1. The XAPI Metadata are already public via the Swagger on many GitHub repos. It's not a risk, and it's a common thing to be exposed.
2. As for "/connect/token", the only "risk" is the iteration via 401/403, but with API keys being long random strings, the risk is minimal. Console restrictions will do the rest, so will antihacking which will block the IP trying too many times. Just make sure that's also enabled.