Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 1 addition & 25 deletions docs/codacy-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -625,28 +625,4 @@ rules:
impact: HIGH
confidence: HIGH
references:
- https://kubernetes.io/blog/2025/11/11/ingress-nginx-retirement/
- id: codacy.c.security.avoid-std-system
languages:
- cpp
- c
severity: WARNING
message: >
Detected a call to the standard `system()` function. This is dangerous
as it can lead to Command Injection if untrusted input is passed.
Ensure you are using safe alternatives or properly validating/sanitizing any input used in system calls.
patterns:
# Catch standard system calls, whether global or explicitly in std::
- pattern-either:
- pattern: system(...)
- pattern: std::system(...)
- pattern: ::system(...)
# Explicitly ignore calls to your custom namespace
- pattern-not: osutility::system(...)
metadata:
category: security
description: >
Detects calls to the standard `system()` function which can lead to Command Injection vulnerabilities.
Ensure safe alternatives or proper input validation/sanitization is used.
impact: MEDIUM
confidence: LOW
- https://kubernetes.io/blog/2025/11/11/ingress-nginx-retirement/
Comment thread
DMarinhoCodacy marked this conversation as resolved.
1 change: 0 additions & 1 deletion docs/multiple-tests/codacy-rules/patterns.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@
<module name="codacy.k8s.ingress.nginx.retirement.ingress-class" />
<module name="codacy.k8s.ingress.nginx.retirement.workload" />
<module name="codacy.bash.security.hard-coded-password" />
<module name="codacy.c.security.avoid-std-system" />
</module>
5 changes: 0 additions & 5 deletions docs/multiple-tests/codacy-rules/results.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,4 @@
<file name="codacy-shell.sh">
<error source="codacy.bash.security.hard-coded-password" line="1" message="Hardcoded passwords are a security risk." severity="error" />
</file>
<file name="codacy-c-avoid-std-system.cpp">
<error source="codacy.c.security.avoid-std-system" line="26" message="Detected a call to the standard `system()` function." severity="warning" />
<error source="codacy.c.security.avoid-std-system" line="29" message="Detected a call to the standard `system()` function." severity="warning" />
<error source="codacy.c.security.avoid-std-system" line="32" message="Detected a call to the standard `system()` function." severity="warning" />
</file>
</checkstyle>
35 changes: 0 additions & 35 deletions docs/multiple-tests/codacy-rules/src/codacy-c-avoid-std-system.cpp

This file was deleted.