hello.js icon indicating copy to clipboard operation
hello.js copied to clipboard

Instagram Login with Wrong Credentials

Open sleman opened this issue 7 years ago • 2 comments

Logging in with wrong credentials returns a 404 page with error: HTTP/1.1 404 Not Found

Sorry, this page isn't available. The link you followed may be broken, or the page may have been removed. Go back to Instagram.

I would think that this error should be caught. This can be reproduced in the online demo.

Here's the HTTP request

POST https://www.instagram.com/accounts/login/?force_classic_login=&next=/oauth/authorize/%3Fclient_id%3Da3ab84f1ecd5476588fdf50b44fd60e6%26response_type%3Dtoken%26redirect_uri%3Dhttp%3A//mydomain/redirect.html%26display%3Dpage%26state%3D%257B%2522client_id%2522%3A%2522a3ab84f1ecd5476588fdf50b44fd60e6%2522%2C%2522network%2522%3A%2522instagram%2522%2C%2522display%2522%3A%2522page%2522%2C%2522callback%2522%3A%2522_hellojs_nprvib9%2522%2C%2522state%2522%3A%2522%2522%2C%2522redirect_uri%2522%3A%2522http%3A//mydomain/redirect.html%2522%2C%2522scope%2522%3A%2522public_content%2Cbasic%2522%2C%2522page_uri%2522%3A%2522http%3A//mydomain/%2522%257D%26scope%3Dpublic_content%2Bbasic HTTP/1.1
Host: www.instagram.com

csrfmiddlewaretoken=xxxx&username=yyyy&password=zzzz

sleman avatar Feb 13 '18 14:02 sleman

This seems rather strange what does your implementation of this look like?

MrSwitch avatar Feb 19 '18 23:02 MrSwitch

Same implementation as in the demo here where you can see the issue: https://adodson.com/hello.js/

Just put in a wrong password.

sleman avatar Feb 20 '18 19:02 sleman