Skip to content

Commit

Permalink
forcing checks when no cb was found now forces parameter cbwcvs as cb
Browse files Browse the repository at this point in the history
  • Loading branch information
m10x committed Dec 25, 2024
1 parent 3ba438c commit 0b8faf9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web-cache-vulnerability-scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,13 @@ func runTests(rec int, u string, progress string, foundUrls *[]string, stat stri

/*******************************************/
if pkg.Config.Website.Cache.CBwasFound || pkg.Config.Force {
if !pkg.Config.Website.Cache.CBwasFound && pkg.Config.Force {
pkg.Print("\nNo Cachebuster was found. Forcing the parameter "+pkg.Config.CacheBuster+" as Cachebuster.", pkg.Cyan)
pkg.Config.Website.Cache.CBwasFound = true
pkg.Config.Website.Cache.CBisParameter = true
pkg.Config.Website.Cache.CBName = pkg.Config.CacheBuster
}

pkg.Statistics[stat+"poisoningtested"]++

/* Testing for cookie poisoning */
Expand Down

0 comments on commit 0b8faf9

Please sign in to comment.