nextcloud / passman-webextension

Webextension for the Passman Nextcloud app. Also offers browser extension & Android app.
https://passman.cc
GNU Affero General Public License v3.0
115 stars 43 forks source link

Hikvision security camera login form doesn't get auto-populated #229

Closed synthead closed 6 years ago

synthead commented 6 years ago
### Steps to reproduce This issue is reproducible on a Hikvision DS-2CD2035FWD-I, but it's very likely that most other Hikvision cameras use similar HTML and are also affected. 1. Ensure that login details are present for a Hikvision security camera. 2. Head to the camera's web UI. 3. Observe that login form doesn't auto-populated when form appears. ### Expected behaviour Form should be filled in with login details automatically. ### Actual behaviour Form remains blank after it appears. Here's the login form for reference: ```html
brantje commented 6 years ago

The <form> tag is missing thus we can't recognize the form. Not much to about this.

synthead commented 6 years ago

I checked the HTML for a <form> tag and didn't see one. I logged in and watched a GET request get submitted to http://admin:censored@camera/ISAPI/Security/sessionLogin/capabilities?username=admin.

Pretty non-conventional indeed. What do you mean by "Not much to about this?" Are there limitations with Passman's extension where a <form> is currently required for the auto-login to be populated? I'm happy to put a PR together.

brantje commented 6 years ago

Yea currently we scan form the form tags using a form manager. It might be possible without form tags, but that will put more load on the cpu, and we try to avoid that. (See #225 )

ivalome commented 4 years ago

I face the same issue, where you able to solve it?

ivalome commented 4 years ago
OS3DrNick commented 4 years ago

You cant use localhost on you computer if you want to browse to your camera. Seems unrelated so far. and seems to misshing the admin:password notation in front. Every camera and its possible sign in pages are different. so make sure it can work with this entire url.

usha-manwani commented 4 years ago

Did anyone resolved this issue or find any way? I am also stuck here. ISAPI issue while trying to login to HikeCamera. I am also getting this link http://localhost/ISAPI/Security/sessionLogin/capabilities?username=admin and I dont understand the reason as I am giving the IPaddress of Camera through login form. And that seems to work fine with their demo but not with IIS I think.

ivalome commented 4 years ago

Finally I got it work, the way I did was very simple, I fact I did not modify anything of code. It was just about setting up the correct version of the software what I used was S.O. Win 7 ServicePack 1, IIS (Version 7.5.76000.16385) and it only works on internet explorer(be sure to install de plugin that comes with the SDK). the version I use for IE is 11.0.9600.19507 and thats it, please if someone achive run it on linux tell me please regards from Ivan Medina

usha-manwani commented 4 years ago

Yes.. It works with IE bydefault.. But with other browsers it gives the error mentioned above. I am in china currently so I have 360 and sogou browsers also to work with and they allow plugins. But they throw this error. I dont understand why one browser can allow it and not the other ones