Unprotected Api EndPoints
The report claims that several internal API endpoints lack rate limiting, allowing an authenticated user to automate endless requests with a script. This could lead to heavy server load, potentially causing a denial of service or buffer overflow.
Originally disclosed on HackerOne
- Disclosed after 3 days
Summary:
I am able to automate the get/post requests of the following api end-points with a python script which can lead to heavy load to server resulting in dos attack or buffer overflow. /internal_api/v0.2/getSuggestedProjects /internal_api/v0.2/getLanguages /internal_api/v0.2/getLoggedInUser /internal_api/v0.2/getSecuritySettings /internal_api/v0.2/getActiveOAuthGrants /internal_api/v0.2/getAccountEmails /internal_api/v0.2/getExternalAccounts /internal_api/v0.2/getAuthenticationProviders /internal_api/v0.2/getActivePRIntegrations /internal_api/v0.2/getProjectLatestStateStats /internal_api/v0.2/getBlogPosts /internal_api/v0.2/setUsername /internal_api/v0.2/savePublicInformation
Steps To Reproduce:
[add details for how we can reproduce the issue]
- Create an account lgtm-com.pentesting.semmle.net.
- Get The cookie and nonce value of your logged in session by intercepting post/get requests with burpsuite.
- Use the cookie and nonce value in dos.py script(attached) inorder to execute endless api calls. 4.Watch Video Attached as POC.
Supporting Material/References:
[list any additional material (e.g. screenshots, logs, etc.)] Video and Script is attached.
- [attachment / reference]
Impact
Leading to heavy load on server that can lead to dos attack or buffer overflow using post requests with no rate limit restriction.
Attachments
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the API endpoints lack rate limiting, allowing an authenticated user to send unlimited automated requests.
Impact
The lack of rate limiting could allow an authenticated attacker to overload the server, potentially causing a denial of service or buffer overflow.
What the attacker needed
A free account; ability to intercept requests
How it was found
- Create an account on the target site.
- Intercept a logged-in request with a proxy tool to capture the session cookie and nonce value.
- Use the captured cookie and nonce in a provided script to send endless API calls.
- Observe the effect as shown in the attached video.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
An API endpoint is a web address that a program can call to get or change data. The report says these addresses have no limit on how many times you can call them, so a script can hammer them non-stop. That flood of requests could overload the server and stop it working for everyone.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.