Business Logic Errors: Discount Code Feature Testing

Business logicExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

  • Try to apply the same discount code multiple times to assess if it's reusable.

  • If the discount code is unique, evaluate for race conditions by applying the same code for two accounts simultaneously.

  • Test for Mass Assignment or HTTP Parameter Pollution to see if you can apply multiple discount codes when the application is designed to accept only one.

  • Test for vulnerabilities from missing input sanitization such as XSS, SQL Injection on this feature.

  • Attempt to apply discount codes to non-discounted items by manipulating the server-side request.

Comments

No comments yet.