2

Log forging in checkmarx scan in Java

How to resolve log forging for Java in a checkmarx scan. I tried sanitizing input before putting in the log file. But, it still complains validate or sanitize the input before logging. Please help me to resolve this issue.

KnockingHeads
  • 1,569
  • 1
  • 22
  • 42
gautham
  • 87
  • 2
  • 12
  • 1
    Does this answer your question? [Checkmarx Java fix for Log Forging -sanitizing user input](https://stackoverflow.com/questions/55364577/checkmarx-java-fix-for-log-forging-sanitizing-user-input) – baruchiro May 08 '20 at 06:55
  • I used data sanitize method before logging anything and converted the harmful strings then made the bug as not exploitable in checkmarx there by security team unflagged the issue. – gautham Oct 15 '20 at 19:40

1 Answers1

1

I used data sanitize method before logging anything and converted the harmful strings then made the bug as not exploitable in checkmarx there by security team unflagged the issue. Checkmarx don't intelligently validate the method, security team made the issue not exploitable.

gautham
  • 87
  • 2
  • 12