Skip to content

Can you run ANY javascript in the p5 web editor ? #684

Closed
@pilattebe

Description

@pilattebe

Nature of issue?

  • Found a bug
  • Existing feature enhancement
  • New feature request

Details about the bug:

  • Web browser and version: Safari 12.0
  • Operating System: MacOS
  • Steps to reproduce this:
    I am a javascript beginner, but it seems to me that the p5 web editor should ban some javascript.
    A script like this should not be legal as can redirect you to any website (why not a fake login page or whatever).
    window.open("https://youtu.be/dQw4w9WgXcQ")

Feature enhancement details:

I don't know what are the limitations of javascript but I feel like the p5 web editor is a sharing platform, and it should be safe for people to execute other people's code in it. If you allow such thing, the bad guys are going to find every possible way to exploit your website.
Again, I do not know much about your website nor Javascript nor security in general but this doesn't feel right.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs DiscussionRequires further conversation or consensusPriority:HighShould be addressed soon but not critical

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions