Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why not use email address in unsubscribe link

Give me few reasons why NOT to include email addresses in plain text form for unsubscribe link that gets sent out in our newsletters.

Right now it's:

xyz.net/unsubscrible?uid=123&[email protected]

I am pushing for:

xyz.net/unsubscrible?uid=123&key=(encrpted_email_md5hash).

I don't really like the idea of throwing email addresses in plain text, but need to convince my manager for possible threats.

Update: While all the answers were suggesting how I should secure it and NOT reason why I should secure it, I find do-ob's answer most appropriate.

like image 427
xoail Avatar asked Apr 26 '11 22:04

xoail


1 Answers

Because then you can unsubscribe somebody else. Ideally you want to use only a key:

xyz.net/unsubscrible?key=<some unique cryptographic hash>

I shouldn't be able to guess at ids and emails and cause some action to occur for somebody else.

like image 54
Alex Howansky Avatar answered Oct 23 '22 13:10

Alex Howansky