Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript execution in WebView #1966

Open
prashant-ERA opened this issue Oct 16, 2024 · 1 comment
Open

JavaScript execution in WebView #1966

prashant-ERA opened this issue Oct 16, 2024 · 1 comment
Labels
Awaiting response Awaiting response from the issuer needs triage Needs triage

Comments

@prashant-ERA
Copy link

Describe the bug
A clear and concise description of what the bug is.
I am using flutter_stripe in my project. During code review it was found that WebView Permits JavaScript execution in its WebView implementation.
Whilst this setting can be essential for certain interactive web content, it can also introduce various security weaknesses
if the WebView is used to load untrusted or dynamically generated content. Vulnerabilities like Cross-Site Scripting
(XSS) have become a significant concern in such scenarios and could expose the application and its users to various
security threats. These threats include stealing user data, accessing local resources, or manipulating application
behaviour.

To Reproduce
Steps to reproduce the behavior:

  1. Entering number 123-456-789 into the cardfield.
  2. Tapping the confirm button.
  3. Observe a failure with exception (including the part of the stack trace, belonging to this package) …

Expected behavior
A clear and concise description of what you expected to happen.

Smartphone / tablet

  • Device: [e.g. iPhone X]
  • OS: [e.g. iOS 13, Android 10]
  • Package version: [e.g. 1.0.0]
  • Flutter version [e.g. 2.0.0.]

Additional context
Add any other context about the problem here.

@prashant-ERA prashant-ERA added the needs triage Needs triage label Oct 16, 2024
@remonh87
Copy link
Member

Can you give me some more information? For example why are you using a webview for Flutter Stripe? What is the element that you are talking about?

We do not create elements ourselves and host only Stripe Native elements that are tested and verified against the highest security requirements

@remonh87 remonh87 added the Awaiting response Awaiting response from the issuer label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting response Awaiting response from the issuer needs triage Needs triage
Projects
None yet
Development

No branches or pull requests

2 participants