Coder Social home page Coder Social logo

Comments (12)

firgon000 avatar firgon000 commented on May 18, 2024

What is the threat?

from alumni-network.

no-stack-dub-sack avatar no-stack-dub-sack commented on May 18, 2024

@firgon000 I don't know a whole lot about XSS, but @Bigghead mentioned it to me early on in this process. I would think people attempting to write scripts in our text areas where there is actually some room - bio, mentorship bio, etc.

Not sure what could actually be accomplished if someone did...

from alumni-network.

bonham000 avatar bonham000 commented on May 18, 2024

Looking for @Bigghead's expertise on this one.

from alumni-network.

Bigghead avatar Bigghead commented on May 18, 2024

I've used something simple like express-sanitizer to get rid of script tags on the server.

Some of the things people can easily do with XSS:

  • On the more harmless side, somebody can just write a setInterval alert script on a page, making it super annoying to load/unusable.

Or

  • A user writes a window.open script that will automatically redirect to a malicious site on page load. Imagine if they got this script saved in their profile page's DB. Everybody that visits their profile gets redirected to a new site.

from alumni-network.

Bigghead avatar Bigghead commented on May 18, 2024

Or Helmet.js.

from alumni-network.

bonham000 avatar bonham000 commented on May 18, 2024

@Bigghead @no-stack-dub-sack I think React helps sanitize input for us? Like I don't care what script you write in any of our inputs, but it will just show up as that string of text later on...? Try it out on the live demo app if you can window.open anything then we'll need to take a second look. I just tried a few things myself, nothing. Did find another chat bug tho. 😭 💀

from alumni-network.

no-stack-dub-sack avatar no-stack-dub-sack commented on May 18, 2024

@Bigghead @bonham000

FCC Alumni Network CISO: Shav "Big Head" Parta

from alumni-network.

Bigghead avatar Bigghead commented on May 18, 2024

lolz

from alumni-network.

Bigghead avatar Bigghead commented on May 18, 2024

@bonham000 is right, I just read React helps prevents XSS, as they automatically escape certain html strings in inputs.

from alumni-network.

bonham000 avatar bonham000 commented on May 18, 2024

React 👑

from alumni-network.

Bigghead avatar Bigghead commented on May 18, 2024

React is freakin awesome. That window.open trick broke my voting app the first time.

I don't think we should worry about XSS injections too much (at all) with this app

from alumni-network.

bonham000 avatar bonham000 commented on May 18, 2024

MEEN Stack?

from alumni-network.

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.