0

I have a URL that returns a JSON with a GET parameter "cb"

https://jsonp.c00kie.ninja/public/jsonp.php?cb

The Get parameter cb takes a value as the name of the function so its like a JSONP.

This URL is sanitized but the parameter can be exploited by passing "alert" function as a parameter

example.

https://jsonp.c00kie.ninja/public/jsonp.php?cb=alert

this URL will return a JSON wrapped by alert. Is there a way to be able to execute a custom defined function.

What I have noticed that it removes brackets and the eval method which is the sensitization process.

VLAZ
  • 22,934
  • 9
  • 44
  • 60

0 Answers0