Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Tests browser storage (localStorage, sessionStorage, IndexedDB, cookies) for insecure sensitive data, XSS exposure and persistence.
78% 83%+4 ptsof test cases passed
Passed 19 of 23 test cases with the skill, and 18 of 23 without it.
Show how to set a session cookie securely in a Python Flask response using `response.set_cookie()` so that it is protected against XSS theft, MITM interception, and CSRF attacks.
Sets samesite='Strict' in set_cookie.
3 of 3 safety checks passed
WSTG-CLNT-12
Testing Browser Storage
Browser storage mechanisms (localStorage, sessionStorage, IndexedDB, cookies) can store sensitive data client-side. Vulnerabilities occur when sensitive information is stored insecurely, accessible to XSS attacks, or persists longer than necessary. Testing ensures proper data protection and lifecycle management.
// Browser console - Enumerate all storage
// Check localStorage
console.log("=== localStorage ===")
for (let i = 0; i < localStorage.length; i++) {
const key = localStorage.key(i)
const value = localStorage.getItem(key)
console.log(`${key}: ${value.substring(0, 100)}...`)
Next to this one in the catalogue, plus more from the same author.