[β] Free deluxe membership (already existing vulnerability in juice-shop)
See original GitHub issueβ Challenge idea
Description
The rest/deluxe-membership
route is vulnerable. Users can upgrade themselves to deluxe members by simply making a POST request to this path with the following parameters
UserId
: your uid(which you can get by decoding your jwt)payUsingWallet
: false
Though this can be easily fixed with minor refactoring, I propose that we make this into a challenge instead
Underlying vulnerability/ies
I guess this would fall under Security Misconfiguration
or Miscellaneous
Expected difficulty
βοΈ / β | Difficulty |
---|---|
βοΈ | ββ |
Possible attack flow
You can replicate the attack right now by making a POST request to localhost:3000/rest/deluxe-membership
with the following params
UserId
: your uid(which you can get by decoding your jwt)payUsingWallet
: false- After that, logout and login again to refresh your JWT. You are now a deluxe-member and no amount has been deducted from your wallet
This vulnerability can be discovered by examining the requests made when one tries to pay for deluxe membership and then fu
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
[ β ] Free deluxe membership (already existing vulnerability in ...
β Challenge idea. Description. The rest/deluxe-membership route is vulnerable. Users can upgrade themselves to deluxe members by simply makingΒ ...
Read more >[β] Free deluxe membership (already existing vulnerability in juice ...
The rest/deluxe-membership route is vulnerable. Users can upgrade themselves to deluxe members by simply making a POST request to this path with theΒ ......
Read more >Challenge solutions - Pwning OWASP Juice Shop
By itself, this is not necessarily an indication of vulnerability. However, if the developer is not ... Obtain a Deluxe Membership without paying...
Read more >Hacking OWASP's Juice Shop Pt. 24: Deluxe Fraud
Challenge: Name: Deluxe Fraud. Description: Obtain a Deluxe Membership without paying for it. Difficulty: 3 star.
Read more >OWASP Juice Shop
Juice Shop encompasses vulnerabilities from the entire OWASP Top Ten along ... This program is free software: You can redistribute it and/or modify...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah well, it unfortunately doesnβt work as simple as currently implemented. Just try this:
demo
/demo
Simple βfixβ would be giving the
payUsingWallet=true|false
needs an βupgradeβ into something likepayment=wallet|card
and when that parameter is empty youβd still get your membership. Then itβd be believable business logic flaw and sufficiently different from the password change challenge where the old-password parameter is supposed to be missing entirely to change anyones password.This thread has been automatically locked because it has not had recent activity after it was closed. π Please open a new issue for regressions or related bugs.