Better HN
topnewbestaskshowjobs
Log inSign up

dontreact

1,598 karma · joined Nov 11, 2014 (12y ago) · 694 submissions

Submissions

comment 12y ago · link · parent

There are many in this thread who would greatly appreciate tips on how to access the challenges. Any ideas?

comment 12y ago · link · parent

So maybe we just have to figure out the right redirectUrl?

I imagine that when you login with the right user account a different redirectUrl would get passed back.

I see no way of finding that out what that URL is though, short of someone who has access to the puzzle posting it.

comment 12y ago · link · parent

Put more simply, you can redefine the handleAuth function to automatically set the allow property to true

window.handleAuth=function(a){ a.allow = true; a.logoutUrl?window.location.href=a.redirectUrl:window.location.reload()}

and then click the button.

But it won't help for the reasons explained above.

comment 12y ago · link · parent

When you click the login button, the following function is called: launchPopup=function(){ window.open("/login/","AppLogin","resizable,scrollbars,status,width=600,height=400")}

Which opens https://foobar.withgoogle.com/login

There, an object a:

a = {

				message: '<span class="term-red">Error(6): Login unavailable. Try again later.</span>',
				logoutUrl: 'https://foobar.withgoogle.com/_ah/logout?continue=https://www.google.com/accounts/Logout%3Fcontinue%3Dhttps://appengine.google.com/_ah/logout%253Fcontinue%253Dhttps://foobar.withgoogle.com/denied/%26service%3Dah',
				redirectUrl: '/denied/',
				
				allow: false
			}
Is passed to the original window's handleAuth function:

window.handleAuth=function(a){ a.logoutUrl?window.location.href=a.redirectUrl:window.location.reload()}

It seems that the allow property of the object passed is never checked :(

1
2021222324