Burp Suite User Forum

Create new post

'Stream failed to close correctly' when trying to load one lab

Ivan | Last updated: May 03, 2023 06:05PM UTC

Accidentally broke one of the labs - https://portswigger.net/web-security/csrf/bypassing-samesite-restrictions/lab-samesite-strict-bypass-via-cookie-refresh steps to reproduce: - open burpsuite chromium browser - copy the lab url from that "Access the lab" button from the link above - once the lab loads log on with wiener: peter - click on 'exploit server' button - send this payload in <form action="https://0a04004d0381eae0814f705c005a0098.web-security-academy.net/my-account/change-email" method="POST"> <input type="hidden" name="email" value="fo01@bar.com" /> </form> <script> window.open('https://0a04004d0381eae0814f705c005a0098.web-security-academy.net/social-login'); setTimeout(changeEmail, 5000); function changeEmail() { document.forms[0].submit(); } </script> - click 'Log out' from 'My account' - try to reload the page - you will get this page <html><head><title>Burp Suite Community Edition</title> <style type="text/css"> body { background: #dedede; font-family: Arial, sans-serif; color: #404042; -webkit-font-smoothing: antialiased; } #container { padding: 0 15px; margin: 10px auto; background-color: #ffffff; } a { word-wrap: break-word; } a:link, a:visited { color: #e06228; text-decoration: none; } a:hover, a:active { color: #404042; text-decoration: underline; } h1 { font-size: 1.6em; line-height: 1.2em; font-weight: normal; color: #404042; } h2 { font-size: 1.3em; line-height: 1.2em; padding: 0; margin: 0.8em 0 0.3em 0; font-weight: normal; color: #404042;} .title, .navbar { color: #ffffff; background: #e06228; padding: 10px 15px; margin: 0 -15px 10px -15px; overflow: hidden; } .title h1 { color: #ffffff; padding: 0; margin: 0; font-size: 1.8em; } div.navbar {position: absolute; top: 18px; right: 25px;} div.navbar ul {list-style-type: none; margin: 0; padding: 0;} div.navbar li {display: inline; margin-left: 20px;} div.navbar a {color: white; padding: 10px} div.navbar a:hover, div.navbar a:active {text-decoration: none; background: #404042;} </style> </head> <body> <div id="container"> <div class="title"><h1>Burp Suite Community Edition</h1></div> <h1>Error</h1><p>Stream&#32;failed&#32;to&#32;close&#32;correctly</p> <p>&nbsp;</p> </div> </body> </html> I am not able to restore the lab :(

Don | Last updated: May 04, 2023 05:46AM UTC

Try reloading the lab and getting a new url and starting over. I had a similar error. Reloading the lab fixed the problem.

Ivan | Last updated: May 04, 2023 08:49AM UTC

Thanks Don, i had tried to reload the lab url itself. At first it won't refresh the lab ID but it manages to refresh after a few more times :) There might be a period it wont work

Ben, PortSwigger Agent | Last updated: May 04, 2023 01:11PM UTC

Hi Ivan, Just to clarify how this works. When you launch a lab you are obtaining a unique instance of that lab, so any actions that you take will only apply to your instance. The instances do then expire (after a period of inactivity for a few minutes) so that when you then attempt to launch the lab again you will obtain a fresh new instance (you can tell that this is happened because you will receive a new, unique URL for the lab) that will have reverted back to its original configuration (so any changes or actions you might have applied to the original instance will not impact this new instance). If you have carried out some action that might have 'broken' the lab then the best course of action is simply to leave the lab alone for about 10 minutes and then relaunch it to obtain a new instance and start again.

Satyam | Last updated: Nov 13, 2023 01:56AM UTC

Hi, a similar thing happened to me, I'm using the Chromium browser from the suite to visit the main website. and It is giving me this error. I can't even launch the Labs from the suite.

Satyam | Last updated: Nov 13, 2023 01:56AM UTC

Hi, a similar thing happened to me, I'm using the Chromium browser from the suite to visit the main website. and It is giving me this error. I can't even launch the Labs from the suite.

Ben, PortSwigger Agent | Last updated: Nov 13, 2023 11:55AM UTC

HI Satyam, Just to clarify, does this error persist if you refresh the page and if you obtain a fresh instance of the lab and try this again? In addition to the above, do you see this for all labs?

kai | Last updated: Nov 20, 2023 03:35AM UTC

I'm having the same issue. After being inactive for more than 10 minutes, the error remains. 'Stream failed to close correctly'

Ben, PortSwigger Agent | Last updated: Nov 20, 2023 11:37AM UTC

Hi Kai, Just to clarify, which browser are you using and are you only seeing this on the actual lab page (as opposed to any other area of Burp)?

Emerlee056 | Last updated: Nov 22, 2023 07:49AM UTC

I searched on every forum on internet and eventually end up fixing this by clearing the steam cache. https://thegeekpage.com/there-was-a-problem-loading-this-web-content-steam-error-fix/

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.