Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upd. WAR. Analysis php://input #399

Merged
merged 3 commits into from
Aug 6, 2024
Merged

Upd. WAR. Analysis php://input #399

merged 3 commits into from
Aug 6, 2024

Conversation

AntonV1211
Copy link
Contributor

if ( $_POST || $_GET || $_COOKIE ) {
$data_array = array($_POST, $_GET, $_COOKIE);
} else {
$data_flow_row['data_flow_row'] = file_get_contents('php://input');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do need check if file_get_contents does not return false. Also use @ to suppress errors.

@AntonV1211 AntonV1211 merged commit 2945c05 into dev Aug 6, 2024
3 checks passed
@Glomberg Glomberg deleted the waf_php_input_av branch August 8, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants