Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Privacy Violation Checkmarx

On scanning code using checkmarx for security vulnerabilities, a privacy violation issue was reported pointing to a variable name.

public const string Authentication  = "authentication";

I am using this variable to create a region in cache by this name("authentication") which stores all the authentication related details.

Is it right to change this variable name into some less meaningful name in order to fix privacy violation issue. How is this a security threat?

like image 383
user3820128 Avatar asked Nov 12 '15 12:11

user3820128


2 Answers

Checkmarx is looking for variables with names like 'password', 'credentials', 'Authentication' etc.. and when it sees that you are assigning them a value, it warns you that you might be storing sensitive information in the code (hardcoding it). In the case that you mentioned it looks like a false positive because this is not sensitive information.

like image 155
Amit Avatar answered Oct 27 '22 20:10

Amit


It's probably a false positive. You should see what the privacy violation rule looks for, and understand how it works...

You can also mark it as false positive and move on... Change status to not exploitable

like image 39
bkl Avatar answered Oct 27 '22 20:10

bkl