5.3 CVE-2024-52962

 

An Improper Output Neutralization for Logs vulnerability [CWE-117] in FortiAnalyzer version 7.6.1 and below, version 7.4.5 and below, version 7.2.8 and below, version 7.0.13 and below and FortiManager version 7.6.1 and below, version 7.4.5 and below, version 7.2.8 and below, version 7.0.12 and below may allow an unauthenticated remote attacker to pollute the logs via crafted login requests.
https://nvd.nist.gov/vuln/detail/CVE-2024-52962

Categories

CWE-117 : Improper Output Neutralization for Logs
The product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is written to a log file. An attack-oriented term that could be used in cases in which the adversary can add additional log entries or modify how a log entry is parsed. Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.) Use and specify an output encoding that can be handled by the downstream component that is reading the output. Common encodings include ISO-8859-1, UTF-7, and UTF-8. When an encoding is not specified, a downstream component may choose a different encoding, either by assuming a default encoding or automatically inferring which encoding is being used, which can be erroneous. When the encodings are inconsistent, the downstream component might treat some character or byte sequences as special, even if they are not special in the original encoding. Attackers might then be able to exploit this discrepancy and conduct injection attacks; they even might be able to bypass protection mechanisms that assume the original encoding is also being used by the downstream component. Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked. Chain: inject fake log entries with fake timestamps using CRLF injection

References

psirt@fortinet.com


 

CPE

cpe start end
Configuration 1
cpe:2.3:a:fortinet:fortimanager:*:*:*:*:*:*:*:* >= 7.0.0 < 7.0.14
cpe:2.3:a:fortinet:fortimanager:*:*:*:*:*:*:*:* >= 7.2.0 < 7.2.9
cpe:2.3:a:fortinet:fortimanager:*:*:*:*:*:*:*:* >= 7.4.0 < 7.4.6
cpe:2.3:a:fortinet:fortimanager:*:*:*:*:*:*:*:* >= 7.6.0 < 7.6.2
Configuration 2
cpe:2.3:a:fortinet:fortianalyzer:*:*:*:*:*:*:*:* >= 7.0.0 < 7.0.14
cpe:2.3:a:fortinet:fortianalyzer:*:*:*:*:*:*:*:* >= 7.2.0 < 7.2.9
cpe:2.3:a:fortinet:fortianalyzer:*:*:*:*:*:*:*:* >= 7.4.0 < 7.4.6
cpe:2.3:a:fortinet:fortianalyzer:*:*:*:*:*:*:*:* >= 7.6.0 < 7.6.2


REMEDIATION




EXPLOITS


Exploit-db.com

id description date
No known exploits

POC Github

Url
No known exploits

Other Nist (github, ...)

Url
No known exploits


CAPEC


Common Attack Pattern Enumerations and Classifications

id description severity
268 Audit Log Manipulation
81 Web Server Logs Tampering
High
93 Log Injection-Tampering-Forging
High


MITRE


Techniques

id description
T1070 Indicator Removal on Host
T1562.002 Impair Defenses: Disable Windows Event Logging
T1562.003 Impair Defenses:Impair Command History Logging
T1562.008 Impair Defenses: Disable Cloud Logs
© 2022 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation.

Mitigations

id description
M1022 Protect generated event files that are stored locally with proper permissions and authentication and limit opportunities for adversaries to increase privileges by preventing Privilege Escalation opportunities.
M1018 Ensure proper user permissions are in place to prevent adversaries from disabling or interfering with logging.
M1028 Make sure that the <code>HISTCONTROL</code> environment variable is set to “ignoredups” instead of “ignoreboth” or “ignorespace”.
M1018 Configure default account policy to enable logging. Manage policies to ensure only necessary users have permissions to make changes to logging policies.
© 2022 The MITRE Corporation. Esta obra se reproduce y distribuye con el permiso de The MITRE Corporation.