mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Spring content types: recognise constant content-type strings
This commit is contained in:
@@ -60,7 +60,7 @@ public class SpringXSS {
|
||||
|
||||
@GetMapping(value = "/xyz", produces = MediaType.TEXT_HTML_VALUE)
|
||||
public static ResponseEntity<String> methodContentTypeUnsafe(String userControlled) {
|
||||
return ResponseEntity.ok(userControlled); // $MISSING: xss
|
||||
return ResponseEntity.ok(userControlled); // $xss
|
||||
}
|
||||
|
||||
@GetMapping(value = "/xyz", produces = "text/html")
|
||||
|
||||
Reference in New Issue
Block a user