
JSteele179692 (Community Member) asked a question.
Some examples of usage that all still generate a CWE 117 flaw:
logger.debug('An example log: %r', database_object.uuid)
logger.debug('An example log : %s', repr(database_object.uuid))
logger.debug(f'An example log : {repr(database_object.uuid)}')
logger.debug(repr(f'An example log : {database_object.uuid}'))
How should I be using the sanctioned cleansing functions in this case?
.png)
Hello @JSteele179692 (Community Member),
Our engineers have enhanced the Python scan engine used within Veracode Static Analysis. The `repr` function is a cleanser for CWE-117 in that scan engine. There is currently a plan to transition all customers to the new engine on 20 July. Early access is available upon request through your AppSec team.
Kind regards,
Dee