GithubHelp home page GithubHelp logo

JS DoS about brave-ios HOT 8 CLOSED

brave avatar brave commented on June 2, 2024
JS DoS

from brave-ios.

Comments (8)

jumde avatar jumde commented on June 2, 2024 1

label bug sounds good.

from brave-ios.

tmancey avatar tmancey commented on June 2, 2024

@jumde hi, you classified this issue as a bug, then removed bug. Can you please let me know if this is a bug or an enhancement as I am making sure all tickets are correctly labeled to help with reporting?

from brave-ios.

danishjafri88 avatar danishjafri88 commented on June 2, 2024

The app is susceptible to js DOS attack especially the window.alert attack. The alert shown blocks the entire screen.
For other bowsers following is the result:
FF: same as brave
Safari: custom alert component
img_6069
Chrome: Blocking alert with option to suppress window.alert after multiple alerts are thrown
img_6067
img_6068

Possible solutions for this DOS attack is either of Chrome's or Safari's way.

from brave-ios.

jamesmudgett avatar jamesmudgett commented on June 2, 2024

@danishjafri88 We need a way to suppress, the Chrome flow works well.

from brave-ios.

srirambv avatar srirambv commented on June 2, 2024

Verification passed on iPhone XR with iOS 13 running 1.12(19.09.04.23)

  • Verified app doesn't hang when constant popups show up
  • Verified selecting Ok or Cancel doesn't cause app to hang
  • Verified Suppress notifications only affect for that particular session and doesn't show up again until the tab is closed and reopened

Verification PASSED on iPad Air 3rd Generation iOS 13.1 running 1.12 (19.09.10.18):

  • Verified app doesn't hang when constant popups show up
  • Verified selecting Ok or Cancel doesn't cause app to hang
  • Verified Suppress notifications only affect for that particular session and doesn't show up again until the tab is closed and reopened

from brave-ios.

kjozwiak avatar kjozwiak commented on June 2, 2024

@danishjafri88 quick question regarding this fix. Whenever you suppress the modal/dialog/alerts, the page becomes unresponsive. Example:

  • open #770 in a new tab
  • tap on https://dustiest-limitation.000webhostapp.com/alert.html
  • suppress the alert and you'll notice that the page becomes unresponsive and appears as it's still attempting to load. Tapping on the X to stop the load doesn't do anything. You'll need to basically close the tab and re-open.

Is the above expected? Or should the page recover once you suppress the alerts?

from brave-ios.

srirambv avatar srirambv commented on June 2, 2024

@kjozwiak that expected. More discussion on this here: https://bravesoftware.slack.com/archives/C06UXF3KJ/p1567691573119300

from brave-ios.

srirambv avatar srirambv commented on June 2, 2024

Verification passed on iPhone 7+ with iOS 12.4.1 running 1.12(19.09.13.06)

from brave-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.