Shikata Ga Nai

Private? There is no such things.

Juice ShopのForged Couponをやってみた

Hello there, ('ω')ノ

 

少なくとも80%の割引を提供するクーポンコードを偽造しなさいと。

 

f:id:ThisIsOne:20210706144458p:plain

 

OWASP Juice ShopのTwitterを検索して最新のクーポンコードを探して。

 n(XLuf!Cdm

 

f:id:ThisIsOne:20210706144258p:plain

 

Base85の仕様については、下記を。

 https://rfc.zeromq.org/spec/32/

 

f:id:ThisIsOne:20210706153453p:plain

 

まずは、下記のサイトでデコードして。

 https://cryptii.com/pipes/z85-encoder

 

n(XLuf!Cdm

4a 55 4c 32 31 2d 32 30

 

f:id:ThisIsOne:20210706144940p:plain

 

下記のサイトでアスキーに変換して。

 https://www.rapidtables.com/convert/number/hex-to-ascii.html

 

 4a 55 4c 32 31 2d 32 30

 ⇩

 JUL21-20

 

f:id:ThisIsOne:20210706145150p:plain

 

最後の数字が割引率と考えられるので変更して。

 JUL21-80

 

Swapをクリックしてエンコードすることに。

 JUL21-80

 ⇩

 4a 55 4c 32 31 2d 38 30

 

f:id:ThisIsOne:20210706145614p:plain

 

さらにBase85へエンコードして。

 4a 55 4c 32 31 2d 38 30

 ⇩

 n(XLuf!Cvs

 

f:id:ThisIsOne:20210706145741p:plain

 

ログインして。

 

f:id:ThisIsOne:20210706145953p:plain

 

製品を購入してからCheckoutして。

その後、支払い手続きを進めていって。

 

f:id:ThisIsOne:20210706150027p:plain

 

さきほどのクーポンコードを入力していくと。

 

f:id:ThisIsOne:20210706150139p:plain

 

クリアできた。

 

f:id:ThisIsOne:20210706150228p:plain

 

Best regards, (^^ゞ