Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direct API URL Access Can Bypass Role Restrictions in Devportal #3391

Open
Gayanthakaushal opened this issue Nov 27, 2024 · 0 comments
Open
Labels

Comments

@Gayanthakaushal
Copy link

Description

Even when an API is restricted in the Publisher and Developer Portal (DevPortal) for users who do not have a specific role, users with the roles Internal/creator, Internal/subscriber, and Internal/publisher can still view the API in the DevPortal if they access the full URL of the API directly.

Steps to Reproduce

  1. Create an API and Role:
    Create an API through the Admin Portal.
    Create a custom role without any permissions.

  2. Restrict Access:
    Restrict access to the API in both the Publisher Portal and the DevPortal for the custom role created above.

  3. Create a Test User:
    Create another user with the roles Internal/creator, Internal/subscriber, and Internal/publisher (but without the custom role mentioned above).

  4. Verify Access Restriction:
    Log in to the Publisher Portal and DevPortal with the test user. The API should not be visible.

  5. Obtain the API URL:
    Log in to the DevPortal as an Admin user and copy the API's URL

  6. Bypass Restriction:
    Log in to the DevPortal as the test user created earlier.
    In a new browser tab, enter the copied API URL directly.
    You will be able to view the API, despite the restrictions.

Version

4.0.0

Environment Details (with versions)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant