A 302 cushioning attack exploits HTTP redirect responses to silently send users to a malicious site while they believe they are visiting a legitimate one. Understanding HTTP response codes is essential to recognizing how this redirection-based deception operates.
302 Cushioning Attack
Another way to trick the user would be to do a 302 cushioning attack. In our scenario, let's say a user is using a computer to access a website. The client machine is going to ask for a resource based off the URL. The URL is going to point to a specific resource, and then that web server will then respond back.
The web server will respond back with one of many different codes. It'll be the 100, the 200, 300, 400, or 500 level code. The 100 level, and there's multiple underneath this, would be informational. The 200 means that there's success. That's what we're looking for, that's what we're hoping for. The 300 level would be a redirect. The 400 level means that there's a client error, and the 500 level means that there's a server error. An example of this is you might have seen the 404 error: something's not found, the resource isn't found.
To dig a little deeper into a couple of the 300 messages here, we've got 301, which means that resource has been moved permanently, or a 302, which means the resource has been moved temporarily. So if a resource has been moved, like a web page, then it will redirect that user to the new resource. What that looks like is the user has reached out to the server, the server says that resource has been temporarily moved, go look over here for it, and then it will go to, in this case we're saying a web page, go to that new web page and then get that web page.
A cushioning attack is where it accesses the resource but then gets redirected to a new web page, maybe something that has some sort of malicious software on it, and then they get that malicious software. So this is the 302 cushioning attack: the user has been redirected. They think they're on the original site, and instead they're on a different site. We're just using a redirect to redirect the user from one site to another for some sort of nefarious purposes.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →