| Random Link ¯\_(ツ)_/¯ | ||
| Nov 21, 2018 | » | Web Applications 101
2 min; updated Mar 14, 2021
How does a page embed content from other domains?Method 1: Loading a third party script that modifies the page. Method 2: Loading a third party resource in an iframe. How do you stay logged in w/o re-entering password?HTTP cookies!
How does DoubleClick track users from site to site?Third-party cookies ... |
| Nov 21, 2018 | » | 02. Threat Models for Web Security
1 min; updated Mar 14, 2021
#1: Network AdversaryAddressed by secure communication protocols (+ network security) #2: User visits adversary’s pageVariants:
#3: Adversary is a third-partyNote that an adversary script being embedded directly, e.g. through a #4: Adversary interacts with the server |
| Nov 21, 2018 | » | 03. Cross-Site Request Forgery (XSRF)
2 min; updated Sep 5, 2022
Cross-site Request Forgery (XSRF)Because the user is logged in and has a cookie, the victim site trusts the user’s browser. The attacker gets user/browser to execute command on victim site, e.g. request a link, post a form. The command has permanent effects. |
| Nov 25, 2018 | » | SQL Injection
1 min; updated Mar 14, 2021
In a SQL injection attack, the attacker provides malicious form input that is fed into a DB server. Outcomes may include data deletion, bypassing access control, etc. Sample Buggy LoginServer side code: An attacker can supply
|
| Nov 21, 2018 | » | Cross-Site Scripting (XSS)
2 min; updated Mar 14, 2021
XSS 101Suppose a site, given a non-existent path, e.g. Error 404! `path` not found. An attacker can then lead a user to opening Suppose a site uses Force HTTPS. If a |
A frame can navigate its immediate children. Why is it designed such that it can’t navigate its children too?
Consider a website with a login frame, where the user inputs passwords. The attacker can put this website inside a frame and navigate to the login frame and steal passwords.
...