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

Wallet: Only inject wallet provider in a secure context #5518

Closed
nuo-xu opened this issue Jun 13, 2022 · 2 comments · Fixed by #5522 or #5558
Closed

Wallet: Only inject wallet provider in a secure context #5518

nuo-xu opened this issue Jun 13, 2022 · 2 comments · Fixed by #5522 or #5558

Comments

@nuo-xu
Copy link
Contributor

nuo-xu commented Jun 13, 2022

Ref: Desktop/Android PR brave/brave-core#13739
Ref: https://github.com/brave/security/issues/887#issuecomment-1154447929

We want to inject wallet provider to a page that is secure and only have secure content.

@StephenHeaps
Copy link
Contributor

Re-opening to handle treating a page that has loaded mixed-content as insecure and rejecting dapp requests.

ref: https://github.com/brave/security/issues/887#issuecomment-1162409406

@StephenHeaps StephenHeaps reopened this Jun 22, 2022
StephenHeaps added a commit that referenced this issue Jun 22, 2022
* Fixed mixed-content validation + missing error handler
* Only check against `hasOnlySecureContent` when not local. Don't reply when request is invalid.
Co-authored-by: Brandon T <[email protected]>
soner-yuksel pushed a commit that referenced this issue Jun 22, 2022
* Fixed mixed-content validation + missing error handler
* Only check against `hasOnlySecureContent` when not local. Don't reply when request is invalid.
Co-authored-by: Brandon T <[email protected]>
@srirambv
Copy link
Contributor

Verification passed on iPhone 7+ with iOS 14.8.1 running 1.40 (22.6.24.14)

  • Verified steps from #5522 / #5558
  • Verified able to connect to a Dapp which is available over secure connection
  • Verified unable to trigger Dapp connection over http. (Used eth manual test page via proxy and couldn't trigger dapp connection notification)

Verification passed on iPhone XR with iOS 15.6 running 1.40 (22.6.24.14)

  • Verified steps from #5522 / #5558
  • Verified able to connect to a Dapp which is available over secure connection
  • Verified unable to trigger Dapp connection over http. (Used eth manual test page via proxy and couldn't trigger dapp connection notification)

Verification passed on iPad Pro with iOS 15.6 Beta running 1.40 (22.6.24.14)

  • Verified steps from #5522 / #5558
  • Verified able to connect to a Dapp which is available over secure connection
  • Verified unable to trigger Dapp connection over http. (Used eth manual test page via proxy and couldn't trigger dapp connection notification)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.