JavaScript Injection
In the case of JavaScript, a search for the eval function should be on top of that list, as it allows the user to execute arbitrary code:
grep -rnw "eval(" . --color
Then we should search through the files which the previous grep command points.
If we see that JSON POST Requests are used to trigger the processing function, we could try to inject javascript commands appended to one of the json parameters:
require('util').log('CODE_EXECUTION');
If it works, to get a reverse shell:
Last updated