Possible Log Injection #3342
Replies: 1 comment 3 replies
-
Hi @ZuhairORZaki,
... to a lot of bad things, actually, since subscription-manager relies on the content that is sent by the remote (Candlepin) server. An example of this are the serial numbers for the entitlement certificates: the serials are used as filename when writing the certificates, e.g. Hence, if an user chooses to ignore the SSL certificate validation, it is already risking potentially everything, so I do not see how this small detail would make the situation worse. Note also that the default log level is INFO, so the mentioned To sum up: while I can see the minor issue here, and fixing this would be sort of straightforward (we have a small helper for this, What is the actual issue that triggered this report? Anything public we can take a look? |
Beta Was this translation helpful? Give feedback.
-
In file:
attach.py
, there is a method that stores a json field value into logs without validating the data. This allows an attacker to corrupt the log file structure.The
pool_json
json object comes frompool
field ofent
json object.Here
ents
comes from invokingattach_pool
method ofattach_service
.The
attach_pool
method down the line makes a POST request to a server. In the case certificate verification is not required, its possible for an attacker to send a forged response in whichproductName
field contains special characters i.e.\n
. This can disrupt the log structure.Sponsorship and Support
This work is done by the security researchers from OpenRefactory and is supported by the Open Source Security Foundation (OpenSSF): Project Alpha-Omega. Alpha-Omega is a project partnering with open source software project maintainers to systematically find new, as-yet-undiscovered vulnerabilities in open source code - and get them fixed – to improve global software supply chain security.
The bug is found by running the Intelligent Code Repair (iCR) tool by OpenRefactory and then manually triaging the results.
Beta Was this translation helpful? Give feedback.
All reactions