Question: ( 2 0 ) Use whitelisting to specify exactly what is allowed. Whitelisting is a pessimistic technique in that by default it denies everything except

(20) Use whitelisting to specify exactly what is allowed. Whitelisting is a pessimistic technique in that by default it denies everything except for those things explicitly allowed. Apply whitelisting to resolve this vulnerability by reading a whitelist.json file that has in it the roles and the set of whitelist terms allowed for that role.
[
{
},{
},{
}]
"role": "admin",
"whitelist": ["TERM1", "TERM2",...]
"role": "developer",
"whitelist": ["TERM3", "TERM4",...]
"role": "user",
"whitelist": ["TERM5", "TERM6",...]
Then use ProcessBuilder

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!