Skip to content
SSRF Write-up Intermediate

**I have 1% chance to hack this company**

The yandex_domain parameter in SerpApi's Yandex search API was not validated, allowing an attacker to supply an arbitrary host and cause the server to make requests to it. This server-side request forgery could be used to reach internal services such as cloud metadata, and the response was cached and returned to the attacker.

Alaa Abdulridha Follow

Published on infosecwriteups.com

Today I will share with you the first vulnerability I found on SerpApi, LLC.

Alaa Abdulridha, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the yandex_domain parameter was passed into a server-side HTTP request without validating that it pointed to a legitimate Yandex domain.

What the attacker needed

Access to the SerpApi search API; ability to send crafted requests

The fix

The vulnerability was fixed according to the report timeline.

How it was found

  1. Notice that the Yandex API uses a yandex_domain parameter in the request URL.
  2. Replace the expected Yandex domain with an arbitrary hostname and observe that the server fetches it.
  3. Use a fragment identifier to bypass the hardcoded /search/?text=a path appended by the server.
  4. Send the crafted request directly to the search.html endpoint with URL encoding to avoid the playground's escaping.
  5. Observe that the server returns a cached copy of the fetched page.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

The website let users choose which domain to search on for Yandex results, but it did not check that the domain was actually a Yandex one. Because the server fetched that domain for the user, an attacker could make the server visit any address, including internal ones that outsiders cannot normally reach. This is called server-side request forgery (SSRF): tricking a server into making requests on your behalf.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More by Alaa Abdulridha

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.