I have a Rest API developed in Java. I am using Enums as my request parameters lets say Gender is one of the Enum and say possible values of Gender are M,F
I understand that requestParametrs are user controlled.Sonar is complaining that it is tainted and I need to sanitize the input.
I am failing to understand how an Enum can be tainted and why its posing a risk. We can’t pass any random values to an Enum.
Looking forward to your suggestions.