0

I am getting a Veracode Information Exposure via Sent Data flaw. My code is:

String companyName = System.getProperty(EPMIConstants.COMPANY_NAME);  

This System.getProperty(EPMIConstants.COMPANY_NAME) gets its value from a JVM argument hardcoded in the server itself.

The variable companyName causes this flaw.

Can someone please tell me how to avoid this flaw?

kc2001
  • 5,008
  • 4
  • 51
  • 92
user1782009
  • 299
  • 4
  • 15
  • 32

2 Answers2

1

I would recommend you to create a rule exception in Veracode so the false positive is not highlighted anymore.

Fabio

fcerullo
  • 621
  • 4
  • 3
0

Have a look at this:

http://cwe.mitre.org/data/definitions/201.html

It looks like this might be a false positive.

Fabio @fcerullo

fcerullo
  • 621
  • 4
  • 3
  • Thanks for the reply but i already i have gone through all the theory part related to this. Wherever i searched on internet i got only theory. No practical implementation. Someone please help on this how to resolve this issue. – user1782009 Feb 25 '13 at 06:24