parse-dashboard icon indicating copy to clipboard operation
parse-dashboard copied to clipboard

Prompt form tampered with, what is the problem?

Open lxq20081128 opened this issue 9 years ago • 37 comments

Prompt form tampered with, what is the problem?

lxq20081128 avatar Nov 04 '17 06:11 lxq20081128

v1.1.2 version of the problem, with the https prompt tampered with form, with http and added to allow set, suggesting that must be https

lxq20081128 avatar Nov 04 '17 06:11 lxq20081128

Same issue here, I'm using Heroku as server

fxchou123 avatar Nov 06 '17 23:11 fxchou123

Hi, I used what you said, still does not work in v1.1.2 version.


     公司网址:http://www.mengsens.com/
     
     
                  广东梦森信息科技有限公司 -              廖晓清
         公司地址:广州市海珠区新港西路135号中山大学国家大学科技园B座1308室
     
     手机号码:139 2609 5308
     QQ号码 :187 2117 737
     主营业务:快递鸽 - 快递物流综合解决方案
 
 
 
 祝:生活愉快!一切顺利!

------------------ Original ------------------ From: "Sam Ilic"[email protected]; Date: Wed, Nov 8, 2017 07:11 PM To: "parse-community/parse-dashboard"[email protected]; Cc: "lxq20081128"[email protected]; "Author"[email protected]; Subject: Re: [parse-community/parse-dashboard] Prompt form tampered with, whatis the problem? (#806)

In my case I fixed it by changing from let dashboard = new ParseDashboard({ ... }, true);
to let dashboard = new ParseDashboard({ ... }, { allowInsecureHTTP: true });
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

lxq20081128 avatar Nov 13 '17 16:11 lxq20081128

@lxq20081128 Sorry that was my mistake, it actually doesn't work even if you do what I suggested, which is why I deleted my comment :)

Hopefully we can get a response from one of the contributors as this is currently preventing me from upgrading.

stage88 avatar Nov 15 '17 09:11 stage88

@lxq20081128 I'm assuming you're referring to #810? There were some pretty good details provided in that issue, I'm following up there currently. Let me know if this is something else though.

montymxb avatar Nov 15 '17 20:11 montymxb

Hi @montymxb, I think this issue is a different one, here is my config:

// configure Parse dashboard
let dashboard = new ParseDashboard({
  'apps': [{
    'serverURL': env.parseServerUrl,
    'appId': env.appId,
    'masterKey': env.masterKey,
    'appName': 'APP NAME'
  }],
  'users': [{
    'user': 'whatever',
    'pass': env.dashboardAdminPassword
  }],
  'useEncryptedPasswords': false,
  'trustProxy': true
}, {
  allowInsecureHTTP: true // HTTPS terminated by NGINX
});

Here is what displays after I successfully log in: image

On localhost this works fine, however in Development which is hosted in the cloud where the dashboard is behind NGINX that terminates HTTPS, I get the above message.

stage88 avatar Nov 20 '17 11:11 stage88

@stage88 @lxq20081128 This looks like this is CSRF protection coming into play, specifically triggered when an error code of EBADCSRFTOKEN is reported. I'll look into this further when I have a moment. With that being said this is probably normal behavior, just a guess but something including or between the NGINX config for your domain and the dashboard itself is not quite right.

montymxb avatar Nov 20 '17 19:11 montymxb

I started to have the same issue with aws hosted server (v1.1.2) since yesterday. It was working fine before. I don't remember making any changes to my configuration or app version.

willli666 avatar Nov 23 '17 22:11 willli666

same issue v1.1.2,parse-dashboard and parse-server in same server

dovewi avatar Nov 25 '17 13:11 dovewi

Has anyone seen this via localhost by any chance? Or is this exclusively on remote services?

montymxb avatar Nov 25 '17 23:11 montymxb

Same issue v. 1.1.2 on Google App Engine. Though I can finally log in after few attempts.

gearsion avatar Dec 02 '17 16:12 gearsion

I'm still having problems with this form tampered with. Someone found any workaround on Heroku?

tcha-tcho avatar Dec 08 '17 22:12 tcha-tcho

We are also experiencing the same issue on v.1.1.2

ali-dev avatar Dec 09 '17 00:12 ali-dev

@ali-dev Noted regarding 1.1.2. Until we can replicate this we won't be able to do to much. It does seem like a bug, but it could be a server config issue still. This is considering that all reports are coming from 3rd parties hosting a dashboard.

Once we can reproduce this we can start moving onto a solution. In the meantime if anyone can provide further details as to conditions that triggered this it would be much appreciated. As well as any suspected changes that may have triggered this to pop up.

montymxb avatar Dec 09 '17 00:12 montymxb

Hi, @montymxb! It seems to be an issue with the CSRF protection token that isn't valid (even with allowInsecureHTTP set to true). You can replicate this firing a Heroku free server with dashboard. This already happened before: https://github.com/parse-community/parse-dashboard/issues/664 Thank you!

tcha-tcho avatar Dec 09 '17 10:12 tcha-tcho

@montymxb, couldn't this be a problem related with csurf?

tcha-tcho avatar Dec 09 '17 11:12 tcha-tcho

@tcha-tcho as mentioned above we are aware this is a CSRF token issue. As for the details regarding heroku & the duplicate issue thanks for bringing that to my attention. I'll see if we can replicate this on heroku.

montymxb avatar Dec 10 '17 21:12 montymxb

Keeping this open for now as this (and the older issue #664) both contain details that may be helpful in resolving this.

montymxb avatar Dec 10 '17 21:12 montymxb

The issue has been resolved by downgrading parse-dashboard installation to version 1.1.0 npm install [email protected] this is a bug in latest version 1.1.2

monajafi avatar Dec 11 '17 17:12 monajafi

I'll have to verify that when i look into testing against heroku's setup.

On Dec 11, 2017 9:48 AM, "Mousa Najafi" [email protected] wrote:

The issue has been resolved by downgrade parse-dashboard installation to version 1.1.0 npm install [email protected] this is a bug in latest version 1.1.2

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/parse-community/parse-dashboard/issues/806#issuecomment-350801981, or mute the thread https://github.com/notifications/unsubscribe-auth/AE1d4JEmMNHihd0i69ZwLZSEfnSkkriOks5s_Wr8gaJpZM4QR6Ty .

montymxb avatar Dec 12 '17 13:12 montymxb