From 0b8faf98619e24b3bb434b70a7c6d11072746712 Mon Sep 17 00:00:00 2001 From: Maximilian Hildebrand Date: Wed, 25 Dec 2024 10:35:36 +0100 Subject: [PATCH] forcing checks when no cb was found now forces parameter cbwcvs as cb --- web-cache-vulnerability-scanner.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web-cache-vulnerability-scanner.go b/web-cache-vulnerability-scanner.go index ebcf60a..5ea5314 100644 --- a/web-cache-vulnerability-scanner.go +++ b/web-cache-vulnerability-scanner.go @@ -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 */