Improper Assets Management
Last updated
Last updated
To uncover Improper Asset Management vulnerabilities in API security, follow these steps:
Explore API Documentation: Identify interesting parameters related to user account properties, critical functions, and administrative actions in the API documentation.
Intercept Requests and Responses: Use tools like Burp Suite to intercept API requests and responses. Analyze the parameters involved and identify those that seem crucial for testing.
Guessing and Fuzzing: Guess and fuzz parameters in API requests that accept user input. Pay attention to registration processes that allow the creation or editing of account variables.
Follow these steps to test for Improper Asset Management vulnerabilities:
Baseline Versioning Information:
Understand the baseline versioning information of the API by checking the path, parameters, and headers for versioning details.
Use Postman Collection Editor to add a test for detecting a status code 200, indicating a successful response.
Run Unauthenticated Baseline Scan:
Run an unauthenticated baseline scan of the API collection using the Postman Collection Runner.
Save responses for further analysis.
Review Results:
Review the results from the unauthenticated baseline scan to understand how the API responds to requests using supported production versioning.
Find and Replace Collection Versions:
Use "Find and Replace" to turn the collection's current versions into a variable. Do this for all versions (e.g., v2 and v3) in the collection.
Set Environmental Variable:
Open Postman and navigate to environmental variables.
Add a variable named "ver" to the Postman environment and set the initial value to "v1."
Update the variable to test for various versioning-related paths (e.g., v1, v2, v3, mobile, internal, test, uat).
Run Collection Runner with New Value:
Run the collection runner with the new value set to investigate the results.
Analyze responses and look for anomalies.
Identify Anomalies:
Check for differences in responses, especially when requests to paths that do not exist result in Success 200 responses.
Anomalies may indicate Improper Asset Management vulnerabilities.
Further Investigation:
Investigate specific requests (e.g., password reset) for anomalies.
Identify any differences in responses between versions.
Impact Analysis:
Analyze the impact of the vulnerability discovered. For example, check if the API version allows unlimited attempts for password reset.
Brute Force Testing:
Use tools like WFuzz to perform brute force testing on the API version with potential vulnerabilities.
Test the API's response to brute force attempts, especially in areas like OTP verification.
Review Brute Force Results:
Analyze the results of the brute force testing.
Look for successful responses and verify if the vulnerability allows unauthorized access or actions.
Authenticated User Testing:
Return to the API collection and perform similar tests as an authenticated user to ensure consistent findings.
By following this systematic testing approach, you can effectively identify and exploit Improper Asset Management vulnerabilities in API security. This comprehensive testing strategy helps uncover potential risks and assess their impact on the security of the API.