New answers tagged cookies
1
vote
I'm testing an app that uses only v4 UUIDs as a cookie for authentication. What are some attacks I can try?
A correctly generated v4 UUID is always cryptographically random, that's in the spec. Verifying this, short of looking at the source code, is difficult. There are tests you can run (e.g. Burp Suite's &...
2
votes
Accepted
Session cookie security
The cookie is sent in the header, so it is visible for eaves droppers.
It is not visible for eavesdroppers on the network if the connection is encrypted, i.e. HTTPS is used. With HTTPS not only the ...
3
votes
Accepted
Create a cryptographically secure random string for auth cookie in javascript
Is this safe enough or am I making a horrible mistake?
Safe enough. Overkill, honestly. The most notable improvement I'd recommend here in particular is hashing the session token before storing it in ...
1
vote
Create a cryptographically secure random string for auth cookie in javascript
Here is a simple html web page that uses the javascript Crypto.getRandomValues() function to create a random 32-byte hexadecimal string:
<html lang="en">
<head>
<meta charset=&...
Top 50 recent answers are included
Related Tags
cookies × 780session-management × 158
authentication × 126
web-application × 124
csrf × 96
web-browser × 89
xss × 69
http × 60
tls × 59
privacy × 48
javascript × 39
php × 37
jwt × 34
user-tracking × 28
encryption × 25
session-fixation × 24
same-origin-policy × 20
appsec × 18
chrome × 18
local-storage × 17
cors × 16
oauth × 15
passwords × 14
man-in-the-middle × 12
webserver × 12