You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit af9c949
Browse filesBrowse the repository at this point in the historyBrowse files
|**Request functions**|`filter_input()` and `filter_input_array()`, except for what the filter removes (`FILTER_VALIDATE_INT`, ...); `getallheaders()`, `apache_request_headers()` and `request_parse_body()`|
781
782
|**Environment**|`getenv()` and `$_ENV` (chosen by whoever starts the process) |
782
783
|**Client-controlled `$_SERVER` entries**| Request headers (`HTTP_*`), URI fields (`REQUEST_URI`, `QUERY_STRING`, `PATH_INFO`, `PHP_SELF`, `argv`, ...), `REQUEST_METHOD`, `CONTENT_TYPE`, HTTP auth credentials, redirected equivalents (`REDIRECT_*`), and any read using a non-literal key (`$_SERVER[$key]`) |
783
784
|**Uploaded files**| Each file's `name`, `type`, and `full_path` in `$_FILES`|
784
785
|**PSR-7 HTTP messages**| Return values of `Psr\Http\Message\ServerRequestInterface`, `ResponseInterface`, `UriInterface`, `StreamInterface`, `UploadedFileInterface`, and implementations (covering framework requests and HTTP client responses such as Guzzle) |
785
786
|**Symfony HTTP client responses**|`getContent()`, `toArray()`, `getHeaders()` and `getInfo()` of `Symfony\Contracts\HttpClient\ResponseInterface`, and the content of the chunks `HttpClientInterface::stream()` yields |
786
-
|**Input streams**|`STDIN`; `fopen()`, `file_get_contents()`, and `file()` on literal `php://input` or `php://stdin`; and stream readers (`fgets()`, `fread()`, `stream_get_contents()`, ...) reading those handles |
787
+
|**Input streams**|`STDIN`; `readline()`; `fopen()`, `file_get_contents()`, and `file()` on literal `php://input` or `php://stdin`; and stream readers (`fgets()`, `fread()`, `stream_get_contents()`, ...) reading those handles |
787
788
|**Server responses**|`fopen()`, `file_get_contents()`, and `file()` on a URL starting with a literal `http://`, `https://`, `ftp://` or `ftps://` (as `file_get_contents('https://api.example.com/items/' . $id)`), and stream readers reading those handles |
788
789
|**Databases**| What the program stored in a database, where it reads it back (see [Databases](taint_flow.md#databases)) |
789
790
|**Network I/O**|`socket_read()`, `stream_socket_recvfrom()`, `curl_exec()`, `curl_multi_getcontent()`; by-reference data from `socket_recv()`, `socket_recvfrom()`, `socket_recvmsg()`; and streams opened with `fsockopen()`, `pfsockopen()`, `stream_socket_client()`, `stream_socket_accept()`, `socket_export_stream()`|
0 commit comments