-
Notifications
You must be signed in to change notification settings - Fork 218
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
⛏️ Write a test to check if a user can redeem the same coupon code multiple times #175
Comments
@aktoboy I want to work on this issue please assign it to me. |
Thanks for your interest 🎉 Assigning to you! Happy hackfesting 🥳 |
Hey @Roshani9731, let me know if you need any help with this issue. |
Hi @Roshani9731 do you need any help with this? |
Hi @Roshani9731 are you still working on this? |
@ankush-jain-akto - I can work on this test. Could you please assign the same to me. |
@Ankita28g @ankush-jain-akto |
@Ankita28g @ankush-jain-akto I have raised a PR for this one. Please review and let me know if any suggestions/changes. |
Hey @Ankita28g @ankush-jain-akto !! Can you please assign me this issue ?? I would love to contribute to it. |
@harshalkh your YAML seems to be invalid. Logic is correct but please run the template on some valid endpoint before you make a PR. |
@avneesh-akto - i have made changes and tested on Test editor. please check now. akto-api-security/tests-library#21 |
Hello @harshalkh , could you please make a minor adjustment? Instead of solely searching for the coupon in the query parameters, could you also check for it in the request body? Thank you! Rest looks good to me |
Also change target branch to develop instead of master |
@avneesh-akto - requested changes done.. Also pls assign this issue to me. |
Looks good @harshalkh. |
💭 Introduction:
We want to test whether an attacker can redeem the same coupon multiple times by exploiting race condition vulnerability.
🎯 Requirements:
Filters - This test should run on apis which are used to redeem coupons. You can choose an API that has a query-param named "coupon".
Execute - Re-run the same request without any changes
Validate - If we get 90% response match, then it is vulnerable
The test should correctly detect whether the api is vulnerable to race condition.
✅ Task summary:
📚 Reading
You can find a detailed documentation of test editor rules here
Find 100+ examples of YAML tests here
🙋🏼♂️ Questions:
If you have questions, need any help, or just want to hang out, make sure to join us on our Discord server.
The text was updated successfully, but these errors were encountered: