Adapt guide to be inclusive of API testing
Web-based APIs can, for the most part, be testing using this guide. Some elements are naturally client-side and therefore irrelevant to API testing.
I suggest that we create an article in section 3 or 4.1 that talks about how the guide can be used for API testing.
I further suggest that we review the existing articles to ensure that the language used is appropriate for web app and APIs alike, and determine where any additions might be needed where testing for the same issue on an API involves a different process.
#76 partially addressed this issue. A review of existing articles is still outstanding.
Please comment if you are still working on this issue, as it has been inactive for 30 days. To give everyone a chance to contribute, we are releasing it to new contributors.
Please comment if you are still working on this issue, as it has been inactive for 30 days. To give everyone a chance to contribute, we are releasing it to new contributors.
Please comment if you are still working on this issue, as it has been inactive for 90 days. To give everyone a chance to contribute, we are releasing it to new contributors.
I can take this one.
I see there is “testing for APIs” page (in the root of the repo). I would like to suggest taking this content and reworking it into several subtopics within the API section.
Starting with a 00-API Testing Overview Section. Then renaming 01-Testing for GraphQL to some later number but keeping the content intact Next, 01-Finding APIs, the recon of finding APIs to test Following with section on specific testing based on the API top 10.
Interesting in leadership thoughts on this approach.
I see there is “testing for APIs” page (in the root of the repo). I would like to suggest taking this content and reworking it into several subtopics within the API section.
Starting with a 00-API Testing Overview Section. Then renaming 01-Testing for GraphQL to some later number but keeping the content intact Next, 01-Finding APIs, the recon of finding APIs to test Following with section on specific testing based on the API top 10.
Interesting in leadership thoughts on this approach.
I think this makes sense! Would you like to do a rough draft for the new content? I'm happy to help go over it then.
I think this makes sense! Would you like to do a rough draft for the new content? I'm happy to help go over it then.
Thank you. I almost have a PR ready for the Overview section.
I think this makes sense! Would you like to do a rough draft for the new content? I'm happy to help go over it then.
@victoriadrake There is a PR available for you to review.
Hi @garthoid , @kingthorin , @victoriadrake , team, if I am reading this correctly, is the goal to have under 'API Testing' section specific test cases based on the Top 10 such as 'Testing for BOLA', 'Testing for Rate Limiting' etc? If so, would each of them be added as a separate issue folks can contribute other than this one?
IMHO only if it's something that's truly unique to API testing. From my PoV BOLA is essentially IDOR by a different name, but in reality is likely tested the same as IDOR or as any other authz issue.
Thank you @kingthorin for the input. Yeah, I don't see a substantial difference between IDOR and BOLA as well, but I view BOLA as a more specific term that has gained traction in the context of APIs, especially due to the OWASP Top 10 API. I believe the current WSTG-AUTHZ-04 could benefit from being more inclusive of API testing. I have two proposals that I'd like to discuss and I can make contributions:
- Adapt/enhance WSTG-AUTHZ-04 to include API-specific considerations for testing for BOLA and potentially rename it to reflect this inclusion.
- Create a new BOLA test case scenario under API Testing section. This would be focused explicitly on API object-level authorization issues and goes aligned with comments on here.
I think option 2.
I would agree with option 2, with any relevant references to WSTG-AUTHZ-04.
Sounds good. I will work on option 2 and send a PR in a few days referencing this issue.
@kingthorin I think the main goal here is done. The API Testing chapter (4.12) now has the overview from #1140, which is the article this issue originally asked for, plus API-specific tests for BOLA (#1190) and BFLA (#1207). The old Testing_for_APIs.md content was folded in through #1521 and #1522. The only open part is the general review of existing articles for API-inclusive wording, which is open-ended. Could this be closed, with a smaller follow-up issue for that review if it's still wanted?
Ya we can close this. The API chapter is definitely underway.