We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
File names like "httpd-foreground" or "./drop-http-proxy-header.conf" are not detected as URLs.
The following ADD statements are wrongly detected as smelly by this query:
ADD ./drop-http-proxy-header.conf /etc/apache2/conf-available
ADD httpd-foreground /usr/local/bin/
The query seems only to check if the sequence "http" or "https" can be found anywhere in the ADD statement not if it is actually an URL. It might be better to check if it also includes :// directly afterward. (see https://github.com/Checkmarx/kics/blob/master/assets/queries/dockerfile/curl_or_wget_instead_of_add/query.rego#L18)
ADD
://
The text was updated successfully, but these errors were encountered:
Hi @Lergin, I hope you are doing Great!! I am happy to tell you that there is already a PR to improve the RegEx rule in this Security Query.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Expected Behavior
File names like "httpd-foreground" or "./drop-http-proxy-header.conf" are not detected as URLs.
Actual Behavior
The following ADD statements are wrongly detected as smelly by this query:
ADD ./drop-http-proxy-header.conf /etc/apache2/conf-available
ADD httpd-foreground /usr/local/bin/
The query seems only to check if the sequence "http" or "https" can be found anywhere in the
ADD
statement not if it is actually an URL. It might be better to check if it also includes://
directly afterward. (see https://github.com/Checkmarx/kics/blob/master/assets/queries/dockerfile/curl_or_wget_instead_of_add/query.rego#L18)Specifications
The text was updated successfully, but these errors were encountered: