Website Without PHP
English (United States)US
  • English (United States)
  • Dutch (Netherlands)
Menu

SSRF

Also known as: server-side request forgery

SSRF is an attack that tricks your website's server into making requests for the attacker, for example to private systems that are closed to the outside.

Read the explanation

Security Last updated:

SSRF is an attack that tricks your website’s server into making requests for the attacker, for example to private systems that are closed to the outside. The request seems to come from your own server, so it can reach places that would refuse the attacker directly.

What is SSRF?

Server-side request forgery (SSRF) is a type of vulnerability. The request comes from your server and not from the attacker, so it carries your server’s position in the network and sometimes its trust.

Many features make a server fetch something from an address: importing an image from a link, showing a preview of a URL, checking a webhook or loading a feed. If the address comes from the visitor and the code does not check it, the visitor can point the server somewhere else. That could be another site, a service on the same machine or a system inside your hosting network that is hidden from the internet.

What the attacker gets depends on what sits behind the server. A common target on cloud hosting is the internal address where a machine can read information about itself. Internal admin panels and databases that trust requests from the same network are another.

Why it is hard to spot

An SSRF flaw does not look like an attack on your site. The visible page may work normally. The problem is in what the server does behind the scenes, and that shows up in server logs rather than on the page.

This is also why it is usually fixed by the maker through an update and not by a site owner’s settings alone.

What it means for a PHP or WordPress site

Which PHP version does your site report?

We read only what your site already sends in public: the headers and the top of the homepage. No scan, no login.

PHP can fetch addresses in several ways, including its cURL support (see cURL), and WordPress and its plugins use those functions for imports, embeds, updates and remote images. A plugin that accepts a URL from a visitor and fetches it without checks is a candidate for this kind of vulnerability.

The more features that fetch remote content, the larger the attack surface. A simple brochure site with a few pages and a contact form fetches almost nothing, while a site stacked with import tools, previews and integrations fetches a lot. You decide which of those are worth having.

A concrete example

Imagine a plugin that shows a preview card when you paste a link into a form. The visitor types an address, the server fetches it and shows the title. If the code does not check the address, the visitor can type the address of an internal service instead, and the plugin will happily show what it returns.

Real fixes check the address against an allowed list, block internal ranges and keep fetch tools out of reach of visitors who are not logged in.

When to act

Update plugins and PHP whenever the maker publishes a security fix, and read the notes: when a changelog mentions SSRF or “request forgery”, treat it as a reason to update within days. Remove plugins that you do not use, and question the ones that fetch remote content for features you never touch. If you want a site where no PHP or database runs when a page is viewed, see our WordPress to static site approach.

If you suspect that a flaw like this has been used, such as strange outgoing traffic or unknown files, ask us to fix your WordPress website.

Not sure how this applies to your site?

Ask a person to take a look. We check which PHP version your site runs and whether the fix is in, and tell you the next step.

Ask a person to take a look

Or have PHP updated right away: PHP update from $555 excl. VAT

Frequently asked questions

What does SSRF stand for?

Server-side request forgery. The attacker forges a request that your server sends, instead of one that comes from the attacker's own browser.

Why is SSRF dangerous?

Because your server often sits inside a network that outsiders cannot reach. If an attacker can steer where the server sends requests, they can ask internal systems questions that were never meant for the internet.

Is SSRF the same as cross-site scripting?

No. Cross-site scripting runs a script in a visitor's browser. SSRF abuses the server itself to make outgoing requests.

How do I reduce SSRF risk on a WordPress site?

Keep core, plugins and PHP up to date, remove plugins that fetch addresses for no good reason, and ask your host to limit which internal addresses the server may contact.

Share this page

Ask your AI to explain

Opens the chat with a question about this page. An AI answer can differ; the sources above are leading.

This question is sent along: Summarise the confirmed facts on https://websitewithoutphp.com/en-us/glossary/ssrf/ in 5 short points, with the source per point.

  1. Domain
  2. Check
  3. Result
  4. Report

Which PHP version does your site run?

Enter your domain. We read only what your site already sends in public: the headers and the top of the homepage. No scan, no login.

We keep the domain and the result, never your IP address.