-
Notifications
You must be signed in to change notification settings - Fork 0
Business logic vulnerabilities
Alnoman Kamil edited this page Nov 21, 2024
·
5 revisions
Apprentice lab:
Excessive trust in client-side controls
Apprentice lab:
Excessive trust in client-side controls
This lab doesn't adequately validate user input. You can exploit a logic flaw in its purchasing workflow to buy items for an unintended price. To solve the lab, buy a "Lightweight l33t leather jacket".
You can log in to your own account using the following credentials: wiener:peter
-
Solution
- Click on View details of the item.
- Intercept on and click on Add to cart.
- Modify price of the item, in the
POST
request. - Go to My account, and log in as
wiener:peter
. - Go to shop cart and click on Place order.
Apprentice lab:
High-level logic vulnerability
Apprentice lab:
High-level logic vulnerability
-
Solution
- Log in
wiener:peter
. - Add stuff to cart.
- Modify
POST
request and change parameterquantity
to something else. - Refresh page and notice it's reflected to the website, indicating that price can be controlled.
- Log in
Apprentice lab:
Inconsistent security controls
Apprentice lab:
Inconsistent security controls
-
Solutiion
- Register.
- Change email to required usergroup @dontwannacry.com.
- Access
/admin
. - Delete carlito.
Apprentice lab:
Flawed enforcement of business rules
Apprentice lab:
Flawed enforcement of business rules
-
Solution
- Log in as
wiener:peter
. - Add to cart the hax0r jacket.
- Apply a coupon, then apply a different one, alternating.
- boom.
- Log in as
Solutions for the Portswigger's Web Security Academy using mitmproxy and other cli tools instead of Burp Suite
Server-side topics:
- SQL injection
- Authentication
- File path traversal
- OS command injection
- Business logic vulnerabilities
- Information disclosure
- Access control vulnerabilities
- File upload vulnerabilities
- Race conditions
- Server-side request forgery (SSRF)
- XML external entity (XXE) injection
- NoSQL injection
- API testing
- Web cache deception
Client-side topics:
- Cross-site scripting (XSS)
- Cross-site request forgery (CSRF)
- Cross-origin resource sharing (CORS)
- Clickjacking
- DOM-based vulnerabilities
- WebSockets
Advanced topics: