| Wiki Sections |
|---|
| AWS FreePBX |
| FreePBX General |
TheWebMachine Networks Support WikiThe Home of AWS FreePBX® - A division of Rebar IT Outsourcing
| Wiki Sections |
|---|
| AWS FreePBX |
| FreePBX General |
This guide provides detailed instructions for rotating OAuth private keys on AWS FreePBX installations affected by security advisory GHSA-rxx2-w276-rg8q.
An error in the image preparation process left default API OAuth private keys in packaged Amazon Machine Images (AMI) for AWS Marketplace versions 17.5 and earlier. This means that instances of AWS FreePBX launched from these AMIs may have shared OAuth private keys regardless of whether you are currently utilizing GraphQL and other API services on those instances.
7068ba24500a7ab654bd800b7fd071a39ce4afa10b2dc8d7a0f6d509334ff36b api_oauth.key 7c5818cff96cee55dc374f7187b868812c25030e9eb107ed1ee0b7159d1a2703 api_oauth_public.key
While all users should rotate their keys, the urgency varies based on whether you ever generated and utilized API tokens:
1. Schedule a maintenance window and create a Machine Image backup of your Instance - Rotating keys will invalidate existing tokens immediately
2. Run a normal SmartUpgrade routine via:
smartupgrade --auto
3. Respond to the prompt when SmartUpgrade asks about rotating OAuth keys
4. Wait for completion and verify success message
5. Generate new tokens for all existing API connections and distribute to your other applications, if applicable
1. Schedule a maintenance window and create a Machine Image backup of your Instance - Rotating keys will invalidate existing tokens immediately
2. Run the key rotation command via SSH:
smartupgrade rotate-oauth-keys
3. Follow prompts to confirm key rotation
4. Generate new tokens if you already had tokens generated for your API applications, if applicable
Two independent EC2 instances launched with fresh root disks from AWS Marketplace AMI v17.5 started with identical `/etc/asterisk/keys/api_oauth.key` signing keys. This was established using local SHA-256 fingerprints.
The PoC showed that: