Hello
Can we whitelist the parameters of an API call?
This is the API that Iām using to test.
Example:
http://localhost:8080/cbws?operation=getchallenge&username=admin
This is the API definition file.
{
"name":"coreBOS WS",
"slug":"cbws",
"api_id":"3",
"org_id":"4",
"use_keyless":true,
"definition":{
"location":"header",
"key":"x-api-version"
},
"version_data":{
"not_versioned":true,
"versions":{
"Default":{
"name":"Default",
"use_extended_paths":true,
"extended_paths":{
"white_list":[
{
"path":"operation=getchallenge&username=admin",
"method_actions":{
"GET":{
"action":"reply",
"code":200,
"data":"['data']",
"headers":{
}
}
}
}
]
}
}
}
},
"proxy":{
"listen_path":"/cbws",
"target_url":"http://172.17.0.1/flowbpm/webservice.php",
"strip_listen_path":true
},
"active":true
}
Also, I tried by putting the path using the Unicode characters:
"path":"operation\u003Dgetchallenge\u0026username\u003Dadmin"