Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Caught exception: Login unsuccessful. #51

Open
stccorp opened this issue Feb 22, 2015 · 16 comments
Open

Caught exception: Login unsuccessful. #51

stccorp opened this issue Feb 22, 2015 · 16 comments

Comments

@stccorp
Copy link

stccorp commented Feb 22, 2015

I am getting a very weird problem. The code works from my laptop, but it does not work on my server.
the certificate is the same. The DropBoxUploader is the same.

Any ideas?

@stccorp
Copy link
Author

stccorp commented Feb 22, 2015

I am starting to think that my server is being blocked by DropBox. I copy the script to another server with a different IP, and it works

@ghost
Copy link

ghost commented Feb 27, 2015

Hi @stccorp
I have the same problem on my server, the script used to work for weeks but since a few days I have the same error. Did you find any fix?

@josemalonsom
Copy link

maybe it is related to #52?

@hakre
Copy link
Collaborator

hakre commented Mar 2, 2015

Please check the error/exception message carefully. If it is about a CSRF token, then the issue you're experiencing might be due to recent changes Dropbox did (ca. since three days ago). Those are addressed in issue #52 and were just fixed in Dropbox Uploader v1.1.22.

@stccorp, @thomashastir: Please double-check the exact error message. Also please try the latest version.

@stccorp: You reported in January this year that it then worked for you again. Is it not the case any longer? Was it depending on server as well?

@ghost
Copy link

ghost commented Mar 3, 2015

@hakre I replaced the script with the new one and everything is working now. Thanks.

@hakre
Copy link
Collaborator

hakre commented Mar 3, 2015

@thomashastir: Thanks for the prompt feedback. Let's keep this issue open and let's hope it works equally well for @stccorp as well,

@Benratelade
Copy link

Hi,

I am coming across the Login unsuccessful error as well on a couple of servers. Apparently, this started today. Since there was a chance of it being caused by myself and possible modifications to the DropboxUploader.php file, I have already replaced it with the original, to no avail.

I then tried installing the example.php locally with the entire package, and got the same error.

Is there something I am missing, or could Dropbox have changed something 'suddenly'?

@rebelchris
Copy link

Also having the same issues since this morning all of a sudden.
Password didn't change but get following response:

err:{"recaptcha_response": {"message_text": "Please enter a CAPTCHA response."}}

Read about something in a request from 2014, but could not find that anymore

@Rivers37
Copy link

I too am getting this error again...

@hakre
Copy link
Collaborator

hakre commented May 20, 2015

Can confirm this login problem as well. On first try I get "ERROR: Login unsuccessful." and on the following ones "ERROR: Cannot extract login CSRF token." (I do three in a row). Have it since ca. a day now, the time can vary for others as Dropbox rollouts need some time to propagate (AFAIK, I'm normally relatively late).

Yes captcha was reported earlier. There was not much to do about it. Perhaps there should be a check for it.

@hakre
Copy link
Collaborator

hakre commented May 20, 2015

I could take a look, it's now the case that Dropbox spies on the login computer and tries to fingerprint it by injecting data into the form via javascript:

<input type="hidden" name="login_sd" id="login_sd" value="cfv,0.79:dlm:d,Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36,uaend,3955,20030107,en-US,Gecko,4,0,0,0,1920,1172,1920,1200,1920,472,1920,cpen:0,i1:0,dm:0,cwen:1,non:1,opc:0,fc:0,sc:0,wrc:1,isc:0,vib:1,bat:1,x11:0,x12:1,loc::dlm:e,do_en,dm_en,t_en:dlm:if,2,-1,1,0,-1,436;2,-1,0,0,-1,1294;2,-1,0,0,847,847;2,-1,0,0,-1,1167;2,-1,0,0,-1,1073;0,-1,0,0,1477,1152;1,-1,0,0,1444,1515;2,-1,1,0,1471,1152;2,-1,1,0,-1,436;2,-1,0,0,-1,1294;2,-1,0,0,-1,1152;2,-1,0,0,-1,1167;2,-1,0,0,-1,1073;0,0,0,0,1424,411;2,-1,1,0,1447,779;2,-1,0,0,-1,436;2,-1,0,0,972,972;2,-1,0,0,-1,1167;2,-1,0,0,-1,1073;0,-1,0,0,1467,519;0,-1,0,0,1454,525;0,-1,0,0,1452,520;1,0,0,0,1428,883;2,-1,1,0,1457,953;:dlm:f,2,-1,1,0,-1,436;2,-1,0,0,-1,1294;2,-1,0,0,847,847;2,-1,0,0,-1,1167;2,-1,0,0,-1,1073;0,-1,1,0,1477,1152;1,-1,1,0,1444,1515;2,-1,1,0,1471,1152;2,-1,1,0,-1,436;2,-1,0,0,-1,1294;2,-1,0,0,-1,1152;2,-1,0,0,-1,1167;2,-1,0,0,-1,1073;0,0,0,0,1424,411;2,-1,1,0,1447,779;2,-1,0,0,-1,436;2,-1,0,0,972,972;2,-1,0,0,-1,1167;2,-1,0,0,-1,1073;0,-1,0,0,1467,519;0,-1,0,0,1454,525;0,-1,0,0,1452,520;1,0,0,0,1428,883;2,-1,1,0,1457,953;:dlm:l,0,1,6819,18,0,1,1152;1,1,10127,18,0,1,1152;2,2,10127,18,0,0,1152;3,2,10158,9,0,0,1152;4,1,10899,17,0,4,1515;5,1,10947,86,0,4,1515;6,2,10995,86,0,4,1515;7,2,11020,17,0,0,1515;:dlm:n,0,1,177,1280,298;1,1,195,1278,298;2,1,204,1273,298;3,1,204,1269,298;4,1,282,1263,298;5,1,322,1176,296;6,1,327,1173,296;7,1,390,1173,295;8,1,398,1172,295;9,1,422,1171,294;10,1,429,1171,293;11,1,448,1170,292;12,1,456,1169,291;13,1,461,1169,290;14,1,481,1167,288;15,1,490,1165,286;16,1,493,1165,284;17,1,538,1162,281;18,1,589,1158,277;19,1,590,1155,274;20,1,650,1155,273;21,1,906,1154,273;22,1,912,1149,264;23,1,936,1148,263;24,1,949,1148,262;25,1,997,1147,262;26,1,1718,1147,261;27,1,1730,1147,260;28,1,1752,1147,259;29,1,1781,1147,258;30,1,1829,1147,257;31,1,1896,1147,256;32,1,1962,1146,256;33,3,2028,1146,256;34,4,2161,1146,256;35,2,2163,1146,256;36,1,2163,1146,256;37,3,2560,1146,256;38,4,2561,1146,256;39,2,2561,1146,256;40,1,2562,1146,256;41,1,2570,1146,256;42,1,3215,1146,257;43,1,3221,1145,257;44,1,3246,1144,258;45,1,3253,1144,259;46,1,3261,1143,259;47,1,3278,1142,260;48,1,3317,1142,261;49,1,3341,1142,262;50,1,3360,1141,262;51,1,3381,1141,263;52,1,3398,1141,264;53,1,3413,1140,266;54,1,3428,1139,267;55,1,3429,1138,269;56,1,3438,1138,271;57,1,3445,1136,275;58,1,5433,1109,341;59,1,5460,1109,341;60,1,5781,1108,341;61,1,5789,1108,342;62,1,5797,1107,342;63,1,5805,1105,343;64,1,5815,1102,344;65,1,5821,1097,346;66,1,5829,1090,348;67,1,5837,1081,351;68,1,5846,1070,356;69,1,5853,1054,361;70,1,5863,1024,369;71,1,5878,995,376;72,1,5880,963,381;73,1,5886,932,385;74,1,5893,898,391;75,1,5902,875,393;76,1,5909,858,393;77,1,5917,846,393;78,1,5925,836,393;79,1,6157,834,393;80,1,6165,828,396;81,1,6173,820,400;82,1,6181,809,406;83,1,6190,796,413;84,1,6197,782,423;85,1,6205,763,436;86,1,6213,745,452;87,1,6221,725,468;88,1,6230,698,486;89,1,6237,671,503;90,1,6246,639,519;91,1,6253,603,537;92,1,6261,569,553;93,1,6269,533,568;94,1,6277,507,577;95,1,6285,479,589;96,1,10124,868,447;97,1,10177,888,442;98,1,10182,903,439;99,1,10190,917,436;100,1,10197,926,433;101,1,10205,936,429;102,1,10213,942,425;103,1,10221,948,421;104,1,10230,953,417;105,1,10237,958,414;106,3,10726,1023,314;107,4,10838,1023,314;108,2,10838,1023,314;109,3,15023,1142,335;110,4,15102,1141,332;111,3,16023,1564,307;112,4,16134,1562,308;113,2,16134,1562,308;114,3,16653,1297,376;115,4,16733,1297,376;116,3,22822,1189,315;117,4,22918,1189,315;118,3,40295,1297,386;119,4,40414,1297,386;120,2,40415,1297,386;:dlm:u,:dlm:doe,0,3021,-1.00,-1.00,-1.00;:dlm:dme,0,3021,-1.00,-1.00,-1.00,-1.00,-1.00,-1.00,-1.00,-1.00,-1.00;:dlm:page_url,:dlm:misc,92083,918574,0,3021,3021,1016699,40417,1432102681401,1432102682149:dlm:aj,-1,0:dlm:df,{\&quot;cfp\&quot;:\&quot;-585761488\&quot;,\&quot;fonts\&quot;:[\&quot;Arial\&quot;,\&quot;Calibri\&quot;,\&quot;Cambria\&quot;,\&quot;Comic Sans MS\&quot;,\&quot;Courier\&quot;,\&quot;Courier New\&quot;,\&quot;Helvetica\&quot;,\&quot;Microsoft Sans Serif\&quot;,\&quot;Open Sans\&quot;,\&quot;Roboto\&quot;,\&quot;Roboto Condensed\&quot;,\&quot;Times\&quot;,\&quot;Times New Roman\&quot;],\&quot;browser\&quot;:{\&quot;cookies\&quot;:true,\&quot;java\&quot;:true,\&quot;dnt\&quot;:\&quot;1\&quot;},\&quot;plugins\&quot;:[\&quot;Chrome Remote Desktop Viewer\&quot;,\&quot;Chrome PDF Viewer\&quot;,\&quot;Native Client\&quot;],\&quot;screen\&quot;:{\&quot;colorDepth\&quot;:24,\&quot;pixelDepth\&quot;:24},\&quot;ss\&quot;:true,\&quot;ls\&quot;:true,\&quot;idb\&quot;:true,\&quot;tzo\&quot;:-120,\&quot;rtc\&quot;:true}:dlm:xx:dlm:yy:dlm:zz">

The data is clearly a try to fingerprint the user-agent. As the Dropbox Uploader does not provide such a fingerprint, I assume that there is a fallback on recaptcha.

@Rivers37
Copy link

I could be wrong but this might have fixed itself. Though I have been troubleshooting and might have fixed it without knowing. Can someone please confirm that it's working again?

@devfake
Copy link

devfake commented May 20, 2015

yep, looks like it is working again

@rebelchris
Copy link

Yes it`s also working from my side!

@hakre
Copy link
Collaborator

hakre commented May 21, 2015

Can confirm it working, too.

Just a note in case someone is not aware of it: If you want to prevent captchas in the long run, switch to the new API. This DropboxUploader here is mainly a maintenance operation. If you depend on the functionality, you should highly consider to switch at times where it's working :) Just saying. You can find more information in the first two paragraphs of the readme: https://github.com/jakajancar/DropboxUploader

@jonas-veselka
Copy link

I'am getting this error after I moved my application to another server in early August. Source code or password have not been changed. Just like @hakre wrote:

On first try I get "ERROR: Login unsuccessful." and on the following ones "ERROR: Cannot extract login CSRF token."

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants