Regeneration of API key by low level user: 500$ Access Control bug
2024-1-28 20:31:13 Author: infosecwriteups.com(查看原文) 阅读量:10 收藏

Abhi Sharma

InfoSec Write-ups

I recently uncovered a flaw permits regular users to regenerate API keys for the test suite, utilizing an API endpoint originally designated for administrators only. This article outlines the issue, its potential impact, and the steps to reproduce the vulnerability.

Understanding Target

Examkite(Virtual Name of bbp), a versatile continuous integration and delivery (CI/CD) platform, empowers development teams to streamline and automate their software delivery processes. This platform serves as the backbone for efficient collaboration, enabling teams to build, test, and deploy code seamlessly.

The Bug

The vulnerability is a type of API access control concern, allowing regular users to exploit an API endpoint meant for higher-access users. This oversight may empower an attacker to perform actions beyond their intended capabilities. If exploited, an attacker could carry out unauthorized actions and enables regular Examkite users to regenerate an API key for the test suite through an API endpoint typically restricted to administrators.

Before we move on, if you like my write-ups, please support me by clapping, sharing, and you can clap up to 50 times here on Medium, it’s free. Thank you.

Steps to Reproduce:

  1. Use two accounts one of admin and other of low level user.
  2. Go to api key regeneration then click on generate.
  3. Intercept the request and capture it.
  4. Now go to low level user account.
  5. Use the above captured request `POST /organizations/cdscs/analytics/suites/vdzdr/regenerate_api_key` with low level user.
  6. Forward the request.
  7. Now go to admin account and check the api key is get regerated.

The Bounty

A bounty of $500 has been awarded for the responsible disclosure of this security vulnerability by Examkite team.

Takeaway

This incident serves as a reminder for platform developers to consistently evaluate and reinforce access restrictions, safeguarding against potential breaches and ensuring the integrity of user actions.

Leave some clap if you enjoyed this read, leave your feedback in comment and consider following me for more exciting findings.

Find me on Twitter: @a13h1_

Keep Supporting, Keep Clapping, Keep Commenting.


文章来源: https://infosecwriteups.com/regeneration-of-api-key-by-low-level-user-500-access-control-bug-87c76b9b5842?source=rss----7b722bfd1b8d---4
如有侵权请联系:admin#unsafe.sh