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

system_crlmanager.php: fixed incorrect input validation #4137

Merged
merged 3 commits into from Dec 30, 2019

Conversation

vktg
Copy link
Contributor

@vktg vktg commented Dec 20, 2019

invalid input validation, multiple serials not allowed

@@ -148,6 +137,17 @@
$input_errors[] = gettext("Invalid serial in list (Must be ASN.1 integer compatible decimal or hex string).");
}
}
if (empty($pconfig['certref']) && empty($revoke_list)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be after the block below it, shouldn't it? Otherwise $revoke_list will always be empty if they selected a certificate and didn't enter a serial number.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

now it check if(!empty($pconfig['revokeserial'])) and check each value for ASN.1 compatibility

working ok now

@netgate-git-updates netgate-git-updates merged commit 4779938 into pfsense:master Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants