News for hackers. Stuff that matters.
Re:New message from Mt. Gox by jorisw on Tuesday February 25, 2014 @11:21AM (#7298465)
What are they doing in the page source there? Storing a message in a cookie then refreshing the page to display it?

The second time you visit the page, you'll get your cookie-stored statement.

Almost seems like they want to be able to change their statement without previous visitors seeing the changes.

Re:New message from Mt. Gox by TophWells on Tuesday February 25, 2014 @11:55AM (#7298710)
I don't see anything like that. Here's the page source for me:

<html> <head> <title>MtGox.com</title> </head> <body> <p><img src="/img/mtgox_logo_mail.png"/></p> <p>Dear MtGox Customers,</p> <p>In the event of recent news reports and the potential repercussions on MtGox&#39;s operations and the market, a decision was taken to close all transactions for the time being in order to protect the site and our users. We will be closely monitoring the situation and will react accordingly.</p> <p>Best regards,<br/> MtGox Team</p> </body> </html>

Re:New message from Mt. Gox by TophWells on Tuesday February 25, 2014 @12:13PM (#7298857)
Wait, I refreshed the page a few times, and once, I got:

  <html>
	<head>
		<title>MtGox.com</title>

  <script type="text/javascript">
    var AKSB=AKSB||{};AKSB.q=[];AKSB.mark=function(b,a){AKSB.q.push(["mark",b,a||(new Date).getTime()])};AKSB.measure=function(b,a,c){AKSB.q.push(["measure",b,a,c||(new Date).getTime()])};AKSB.done=function(b){AKSB.q.push(["done",b])};AKSB.mark("firstbyte",(new Date).getTime());
    AKSB.prof={custid:"223233",ustr:"",originlat:0,clientrtt:19,ghostip:"23.51.248.44",ipv6:false,pct:10,xhrtest:false,clientip:"130.223.174.194"};
    (function(b){var a=document.createElement("iframe");a.src="javascript:false";(a.frameElement||a).style.cssText="width: 0; height: 0; border: 0; display: none";var c=document.getElementsByTagName("script"),c=c[c.length-1];c.parentNode.insertBefore(a,c);a=a.contentWindow.document;a.open().write("<body onload=\"var js = document.createElement('script');js.id = 'aksb-ifr';js.src = '"+b+"';document.body.appendChild(js);\">");a.close()})(("https:"===document.location.protocol?"https:":"http:")+"//aksb-a.akamaihd.net/146060/aksb-a/aksb.min.js");
    </script>
    </head>
	<body>
		<p><img src="/img/mtgox_logo_mail.png"/></p>
		<p>Dear MtGox Customers,</p>
		<p>In light of recent news reports and the potential repercussions on MtGox&#39;s operations and the market, a decision was taken to close all transactions for the time being in order to protect the site and our users. We will be closely monitoring the situation and will react accordingly.</p>
	<p>Best regards,<br/>
	MtGox Team</p>
	</body>
  </html>
This is very odd behaviour.
Re:New message from Mt. Gox by sonoffett on Tuesday February 25, 2014 @12:31PM (#7298999)
Someone already mentioned in a previous thread that this is an anti-dos method.
Re:New message from Mt. Gox by kalleboo on Tuesday February 25, 2014 @01:20PM (#7299347)
Re:New message from Mt. Gox by jorisw on Tuesday February 25, 2014 @12:38PM (#7299054)
That's the result DOM source. Try doing a lynx or curl on the site. The entire statement is served through filling a cookie with JavaScript and reloading the site.

Or so it was when I posted my earlier comment.

Re:New message from Mt. Gox by TophWells on Tuesday February 25, 2014 @06:02PM (#7301352)
You're right. Firefox's "View Source" button doesn't do what I thought it did. Curl gives a page with a "Please wait" message and a pile of Javascript.

I learned something today.

Re:New message from Mt. Gox by asogi on Tuesday February 25, 2014 @12:15PM (#7298869)
This is what I see:

  <html><head><title>MtGox.com loading</title></head><body><p>Please wait...</p><script>function xdec(data){var o="SOME_RANDOM_BASE_64_THAT_KEEPS_CHANGING";var o1,o2,o3,h1,h2,h3,h4,bits,i=0,ac=0,dec="",tmp_arr=[];if(!data){return data}data+='';do{h1=o.indexOf(data.charAt(i++));h2=o.indexOf(data.charAt(i++));h3=o.indexOf(data.charAt(i++));h4=o.indexOf(data.charAt(i++));bits=h1<<18|h2<<12|h3<<6|h4;o1=bits>>16&0xff;o2=bits>>8&0xff;o3=bits&0xff;if(h3==64){tmp_arr[ac++]=String.fromCharCode(o1)}else if(h4==64){tmp_arr[ac++]=String.fromCharCode(o1,o2)}else{tmp_arr[ac++]=String.fromCharCode(o1,o2,o3)}}while(i<data.length);dec=tmp_arr.join('');return dec};document.cookie=xdec('MORE_RANDOM_BASE_64_THAT_KEEPS_CHANGING').replace(String.fromCharCode(0),'').split('').reverse().join(''); location.href='/';</script></body></html>
Re:New message from Mt. Gox by saraid216 on Tuesday February 25, 2014 @12:20PM (#7298910)
Please add two spaces before your gigantic layout-breaking text.
Re:New message from Mt. Gox by nav1 on Tuesday February 25, 2014 @12:47PM (#7299124)
The script is for a DDoS protection service (http://www.prolexic.com/). It only shows up the first time you load the page.
Re:New message from Mt. Gox by ChristianBundy on Tuesday February 25, 2014 @12:05PM (#7298784)
I don't see that either, here's the code I'm seeing: https://gist.github.com/christianbundy/9213200