Skip to content

Commit

Permalink
Fix view name for sql reflection vulnerability. Now zap can scan it t…
Browse files Browse the repository at this point in the history
…o add post method to scan
  • Loading branch information
ofertavivcx committed Oct 31, 2021
1 parent 4aee958 commit b8d2192
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class SQLInjectionReflectionController extends AbstractController {
public ModelAndView process(@RequestParam(value = "name", required = false) String name,
@RequestParam(value = "password", required = false) String password, ModelAndView mav,
HttpServletRequest req, Locale locale) {
setViewAndCommonObjects(mav, locale, "sqlijc");
setViewAndCommonObjects(mav, locale, "sqlijc-reflection");
String trimedName = StringUtils.trim(name);
String trimedPassword = StringUtils.trim(password);
if (!StringUtils.isBlank(trimedName) && !StringUtils.isBlank(trimedPassword) && trimedPassword.length() >= 8) {
Expand Down

0 comments on commit b8d2192

Please sign in to comment.