NBA Bug Bounty: Broken Access Control in Billing

x32x01
  • by x32x01 ||
NBA Bug Bounty: Broken Access Control in Billing
During a security assessment of the NBA Public Bug Bounty Program, I discovered a potential Broken Access Control vulnerability in the integration between the Identity Backend and the external Billing Service.
The issue involved a profile update endpoint that allowed modification of an external account identifier without proper server-side ownership validation.

🔍 Vulnerability Discovery​

While reviewing the Identity APIs, I noticed that several sensitive profile fields were protected against client-side modification. However, an object responsible for linking user accounts to external services did not appear to receive the same level of protection.
I suspected that the backend was applying field-level restrictions without properly validating the entire object.
Using my own test account, I modified the external account identifier through a profile update request.
The API returned 200 OK, and a subsequent profile request confirmed that the modified value had been successfully stored.
However, the main question was whether this value was used only within the profile or also by other backend services.



🔗 Tracing the Data Flow​

I started investigating how the Identity Backend communicated with the external Billing Service, focusing on subscription history operations.
Using a non-real test identifier, I triggered a subscription history request.
The Billing Service returned an error indicating that the supplied customer identifier was invalid.
This response confirmed that the client-controlled profile value was being passed downstream and used as the billing customer identifier (cpCustomerID).

Further analysis revealed that the same identity mapping was involved in several billing operations, including:
  • 📋 Subscription history retrieval.
  • ⏸️ Subscription pause and status management.
  • ❌ Subscription cancellation.
  • 🔄 Subscription reactivation.
  • 🎟️ Coupon-related operations.
  • 🆓 Free trial eligibility checks.
This suggested that the issue was not limited to profile manipulation. The backend was trusting a client-controlled identity mapping when performing billing-related operations without sufficient ownership validation.



🧪 Cross-Instance Verification​

To determine whether the behavior was isolated to a single production instance, I repeated the same tests on another instance within the program's scope.
The same behavior was observed, including the ability to modify the external identifier and verify that the updated value was persisted.
All testing was performed using my own accounts and non-real test values. No customer accounts were accessed, no real subscriptions were modified, and test changes were cleaned up afterward.



⚠️ Potential Impact​

The potential impact extends beyond unauthorized profile modification.
If a valid customer identifier belonging to another account could be supplied and accepted by downstream billing operations, this weakness could potentially expose subscription information or enable unauthorized subscription management.
The underlying issue appears to be Broken Access Control caused by insufficient ownership validation when handling external account mappings.
Importantly, access to other customers' billing accounts or successful modification of their subscriptions was not demonstrated during testing.



📌 Bug Bounty Report Status​

I submitted the finding to the NBA Public Bug Bounty Program on HackerOne.
The report passed the preliminary review and reached the Triage stage.
However, it was eventually closed as a Duplicate of a previously submitted report.

Since the original report was not accessible to me, I followed up with the program team to clarify whether it covered:
  • The writable object and its missing server-side validation.
  • The downstream impact on billing operations.
  • The same behavior across an additional production instance.
A screenshot of the HackerOne report is attached to document its review status and final outcome.



💡 Key Takeaway​

This finding reinforced an important lesson in API security: Never stop at the first vulnerable endpoint.
A seemingly minor profile update issue can become much more significant when other backend services trust the modified data.
Following the data flow between systems and checking how external services use client-controlled values can reveal security weaknesses that are not immediately visible at the API level.
 
Similar threads
x32x01
Replies
0
Views
12
x32x01
x32x01
x32x01
Replies
0
Views
111
x32x01
x32x01
x32x01
Replies
1
Views
501
x32x01
x32x01
x32x01
Replies
0
Views
172
x32x01
x32x01
x32x01
Replies
0
Views
152
x32x01
x32x01
Register & Login Faster
Forgot your password?
Forum Statistics
Threads
1,289
Messages
1,297
Members
22
Latest Member
elparqetcom
Back
Top