Skip to content

DoS by sleep #10178

@cgocast

Description

@cgocast

The following piece of code is vulnerable to Denial of Service attacks

<?php

sleep($_GET["seconds"]);

Psalm returns no issue when run with --taint-analysis.

I'll write a PR in 6.x that raises a new issue named TaintedSleep

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions