How to use Hackory to learn
At Hackory you learn the way you run an experiment: first you watch how something works, then you change one thing and compare. At the end you write down what you saw so someone else can check it.
Read chapter
HACKORY
What happens between tapping a link and seeing a page? In twelve chapters you can follow a request, compare two responses and learn to explain what changed. You can read them for free without an account.
New here? Try the first lesson without an accountAt Hackory you learn the way you run an experiment: first you watch how something works, then you change one thing and compare. At the end you write down what you saw so someone else can check it.
Read chapterA web application has two sides. Your browser shows the page and its buttons; another computer, the server, stores the data and decides what to show you and which changes to accept.
Read chapterA URL is the full address of something on the web, such as https://tienda.test/cuenta. DNS works like a contact list: it translates the name tienda.test into the number of the computer to connect to.
Read chapterHTTP is the set of rules the browser and the server use to exchange messages. The browser sends a request, that is, an ask such as “show me invoice 101,” and the server replies with a response. If the address starts with https, those messages are encrypted as they travel.
Read chapterA web page is built from several pieces, and each has its own job. HTML says which parts the page has. JavaScript changes it while you use it. JSON is a format for sending data. SQL is the language the server uses to ask its database for data.
Read chapterWhen you sign in, the site gives you something like a concert wristband: a value you show with every request so you do not type your password again. That value can be a cookie or a token, and the time during which the site recognizes you is called a session.
Read chapterAt a building’s entrance they ask for your ID to know who you are: that is authentication. Then your card opens only some floors: that is authorization, which decides what you may do.
Read chapterA hypothesis is an explanation that may still turn out to be false. The control is the normal test of the same system, the one you keep for comparison.
Read chapterA database stores an app’s information in tables. To ask it for data, the app writes it a statement in SQL, such as SELECT titulo FROM libros WHERE autor = ?. SQL injection happens when text someone typed ends up becoming part of that command.
Read chapterEvery invoice, order, or photo in an app has a number that identifies it: its ID. Knowing that number should not be enough to see it. IDOR is the flaw where the app returns or changes someone else’s object just because someone asked for its number.
Read chapterSome apps visit an address for you: for example, they download the image from a URL you paste. SSRF is the flaw where that visit, made by the server, reaches places it should never go.
Read chapterXSS (cross-site scripting) happens when text someone wrote, such as a comment, ends up working as code inside the page another person sees.
Read chapterPublic reports and famous CVEs, told as a story: what happened, which technical term explains it and how it was fixed. Only story, concept and defense: no steps to repeat any attack.
A Roblox address still pointed to an outside service the company no longer used. Whoever claimed it could publish pages under the Roblox name.
Read the caseA desktop application that Shopify distributed to the public carried a GitHub token that could read and change its private code.
Read the caseTo reset a forgotten password, Instagram sent a six-digit code. There was a limit on attempts, but it could be spread across many connections at once.
Read the caseWhen an old account was merged into Shopify ID, someone else’s email could be marked as verified. With that, some accounts could end up in another person’s hands.
Read the caseWhen the email of a store account was changed, the confirmation for the new address went to the old one. Combined with single sign-on, that opened other stores.
Read the caseIn May 2023, a criminal group used an unknown SQL injection in MOVEit Transfer to steal data from servers exposed to the internet.
Read the caseA misconfigured firewall in the cloud let an outsider use a Capital One server to reach data on about 106 million people.
Read the caseIn 2017, attackers got into Equifax through an Apache Struts flaw that had had a published fix since March. They took data on about 147 million people.
Read the caseLog4j, a widely used library for writing logs, interpreted certain text instead of just storing it. A well-chosen message could make the server run someone else’s code.
Read the caseIn 2014, a bug in OpenSSL, the component that encrypts a large share of https connections, let anyone read small pieces of a server’s memory: passwords, messages and even private keys.
Read the case