I am not a developer, so please forgive my ignorance. Can someone explain why some cookies can be manipulated and submitted via Burpsuite proxy and some cannot? Is there something in JS (or whatever language) that checks against tampering? If so, can this be defeated?
Example: if I'm using Burpsuite during a penetration test, I can change the cookie value from NotAnAdmin to Admin. Sometimes this will work, and sometimes the server will still respond as if I did not make any changes and use the cookie as if it still said NotAnAdmin.
I have tried this with hashes as well, where I will try to swap out a hash or token or something to another one, but the site responds with the original token it generated or changes it back somehow and does not use the one I put in manually.
Set-Cookieheader so your browser picks it up, sometimes it may not.