mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:35:50 +00:00
Update Owner.java
Signed-off-by: AulaEmpresaLKS <129507941+AulaEmpresaLKS@users.noreply.github.com>
This commit is contained in:
parent
6bd4cdbbe8
commit
34b1daa65f
1 changed files with 14 additions and 0 deletions
|
@ -172,4 +172,18 @@ public class Owner extends Person {
|
|||
pet.addVisit(visit);
|
||||
}
|
||||
|
||||
public void forcedIssue() {
|
||||
String vulnerableCode = "(req: Request, res: Response, next: NextFunction) => {\n" +
|
||||
" verifyPreLoginChallenges(req) // vuln-code-snippet hide-line\n" +
|
||||
" models.sequelize.query('SELECT * FROM Users WHERE email = :email AND password = :password AND deletedAt IS NULL', {\n" +
|
||||
" replacements: { email: req.body.email || '', password: security.hash(req.body.password || '') },\n" +
|
||||
" model: UserModel,\n" +
|
||||
" plain: true\n" +
|
||||
" })\n" +
|
||||
"}";
|
||||
System.out.println(vulnerableCode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue