Skip to content
This repository was archived by the owner on Jul 29, 2022. It is now read-only.
This repository was archived by the owner on Jul 29, 2022. It is now read-only.

JS-Injection and PHP error on Live Demo https://jeditable.elabftw.net/ #231

@HoffmannTom

Description

@HoffmannTom

Description

The website https://jeditable.elabftw.net/ provides some sample input fields.
The example website has problems with JS-injection and is missing escaping.

How to reproduce

If I use the "Basic minimal example" I can enter e.g. the string "test <script>alert("hello")</script> & üö"
After pressing enter button, an alert message appears (JS-injection) and also a PHP-error is shown:
Warning: Undefined array key "slow" in /var/www/html/demos/save.php on line 3 Warning.

Expected result

The script tag and all special characters should be treated correctly.

Actual result

Alert is shown and PHP error occurs

Environment

jQuery version:
Browser: Chrome 90
OS: Win10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions