Skip to content

Commit

Permalink
added null byte to web cache deception
Browse files Browse the repository at this point in the history
  • Loading branch information
m10x committed Feb 9, 2024
1 parent d773d4b commit 8a52b8b
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions pkg/deception.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@ func TestWebCacheDeception() reportResult {

// cacheable extensions: class, css, jar, js, jpg, jpeg, gif, ico, png, bmp, pict, csv, doc, docx, xls, xlsx, ps, pdf, pls, ppt, pptx, tif, tiff, ttf, otf, webp, woff, woff2, svg, svgz, eot, eps, ejs, swf, torrent, midi, mid
appendings := []string{
"/.css",
"/nonexistent.css",
"/../nonexistent.css",
"/%2e%2e/nonexistent.css",
"%0Anonexistent.css",
"%3Bnonexistent.css",
"%23nonexistent.css",
"%3Fname = valnonexistent.css",
"&name=valnonexistent.css",
"/.css", // Path parameter
"/nonexistent.css", // Path parameter
"/../nonexistent.css", // Path traversal
"/%2e%2e/nonexistent.css", // Encoded path traversal
"%0Anonexistent.css", // Encoded Newline
"%00nonexistent.css", // Encoded Newline
"%3Bnonexistent.css", // Encoded Semicolon
"%23nonexistent.css", // Encoded Pound
"%3Fname = valnonexistent.css", // Encoded Question Mark
"%26name=valnonexistent.css", // Encoded Ampersand
}

PrintVerbose("Testing for Web Cache Deception\n", NoColor, 1)
Expand Down

0 comments on commit 8a52b8b

Please sign in to comment.