Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

HTML render should be escaped #21

@mehaase

Description

@mehaase

The render_html() method does not sanitize outputs. If a database field contains <script>alert(1)</script>, this will lead to code execution in the user's browser.

Simple fix, change from this:

    		echo "\t<td>$cell</td>\n";

...to this:

    		$cell = htmlspecialchars($cell);
    		echo "\t<td>$cell</td>\n";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions