Shikata Ga Nai

Private? There is no such things.

Juice ShopのExpired Couponをやってみた

Hello there, ('ω')ノ

 

期限切れのキャンペーンクーポンコードを正常に引き換えなさいと。

 

f:id:ThisIsOne:20210709135657p:plain

 

まずは、ログイン後に製品を選んでチェックアウトして進んでいくと。

 

f:id:ThisIsOne:20210709140826p:plain

 

クーポンコードを入力するページがあって。

 

f:id:ThisIsOne:20210709140749p:plain

 

JavaScriptのソースコードで、キーワードを入力してみると。

クーポンコードを判定してそうな箇所がみつかって。

 

f:id:ThisIsOne:20210709141033p:plain

 

さらには、クーポンコードらしきものが。

 

f:id:ThisIsOne:20210709141157p:plain

 

下記のサイトでタイムゾーンを変換すると、期限らしき日付が。

 https://www.epochconverter.com/

 

 1551999600000

 ⇩

 2019年3月7日 Thursday 23:00:00

 

f:id:ThisIsOne:20210709145223p:plain


下記のクーポンコードを入力して。

 WMNSDY2019

 

ブレークポイントを設定して。

気になる変数を監視式に追加しながら処理の内容を見ていくことに。

 

f:id:ThisIsOne:20210709142628p:plain

 

どうやらクーポンコードの日付とクライアントの日付で判定しているようで。

 

f:id:ThisIsOne:20210709150402p:plain


クライアントマシンの日付をクーポンコードの日付に変更することに。

f:id:ThisIsOne:20210709144813p:plain

 

あらためて下記のクーポンコードを入力すると受け入れられたので。

その後のページに進んでいくと。

 WMNSDY2019

 

f:id:ThisIsOne:20210709144834p:plain

 

クリアできた。

 

f:id:ThisIsOne:20210709145127p:plain

 

Best regards, (^^ゞ

Juice ShopのEmail Leakをやってみた

Hello there, ('ω')ノ

 

データクロスドメインにアクセスして、不要な情報開示を実行しなさいと。

 

f:id:ThisIsOne:20210708173654p:plain

 

ログインして。

 

f:id:ThisIsOne:20210708174444p:plain

 

リクエストをリピータへ。

 

f:id:ThisIsOne:20210708180514p:plain

 

レスポンスを確認して。

 

f:id:ThisIsOne:20210708181912p:plain


クロスドメインということで。

callbackに適当なパラメータをセットしてリクエストすると。

大したインパクトもなく。

f:id:ThisIsOne:20210708181831p:plain

 

クリアできた。

 

f:id:ThisIsOne:20210708181940p:plain

 

Best regards, (^^ゞ

Juice ShopのForgotten Developer Backupをやってみた

Hello there, ('ω')ノ

 

開発者の忘れたバックアップファイルにアクセスしなさいと。

 

f:id:ThisIsOne:20210708145412p:plain

 

以前、Access Logのチャレンジでわかったファイルのディレクトリへ。

 http://localhost:3000/ftp

 

f:id:ThisIsOne:20210708150233p:plain

 

それらしいバックアップファイルを開こうとすると。

 http://localhost:3000/ftp/package.json.bak

 

f:id:ThisIsOne:20210708150453p:plain

 

mdファイルは開けるようなので。

 

f:id:ThisIsOne:20210708151027p:plain

 

拡張子にmdを指定して。

その前にヌルバイトを入れて.mdの文字を切り捨てることに。

レスポンスのエラーコードが変わるだけで。

 http://localhost:3000/ftp/package.json.bak%00.md

f:id:ThisIsOne:20210708150949p:plain


はじめに試すのはエンコードで。

 

f:id:ThisIsOne:20210708151210p:plain

 

再度、アクセスしてみると。

 http://localhost:3000/ftp/package.json.bak%25%30%30.md

 

f:id:ThisIsOne:20210708151326p:plain

 

バックアップファイルを読み込むことができて。

 

f:id:ThisIsOne:20210708151408p:plain

 

クリアできた。

 

f:id:ThisIsOne:20210708151513p:plain

 

Best regards, (^^ゞ

Juice ShopのChristmas Specialをやってみた

Hello there, ('ω')ノ

 

2014年のクリスマススペシャルオファを注文してくださいと。

 

f:id:ThisIsOne:20210707093720p:plain

 

まずは、製品ページへ。

 

f:id:ThisIsOne:20210707093745p:plain

 

リクエストをリピータへ。

 

f:id:ThisIsOne:20210707093819p:plain

 

SQLインジェクションで、すべての製品を取得して。

Christmasの情報がわかって。

 GET /rest/products/search?q='))--+

 

f:id:ThisIsOne:20210707095212p:plain

 

ログインして。

 

f:id:ThisIsOne:20210707095419p:plain

 

なんらかの製品を選んで。

 

f:id:ThisIsOne:20210707095755p:plain

 

選んだ際のリクエストをリピータへ。

 

f:id:ThisIsOne:20210707100004p:plain

 

ProductIdを変更して、Sendして。

 

f:id:ThisIsOne:20210707100028p:plain

 

リロードすると、カートに追加されたのでCheckoutして。

 

f:id:ThisIsOne:20210707100051p:plain

 

買い物をすすめていくと。

 

f:id:ThisIsOne:20210707100226p:plain

 

クリアできた。

 

f:id:ThisIsOne:20210707100243p:plain

 

Best regards, (^^ゞ

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, (^^ゞ