Skip to content
Info disclosure Write-up Intermediate

How I used shodan to discover 3 easy bugs on VDP program?

The author found three issues on a VDP program: an exposed Spring Boot Actuator endpoint that disclosed sensitive information, a cross-site scripting and HTML injection flaw in an outdated Swagger UI via the configUrl parameter, and debug information exposure on an origin IP discovered through Shodan. An attacker could use these to access internal data, execute scripts in a victim's browser, or learn about the server's internals.

hamdiyasin135 Follow

Published on medium.com

Hey there fellow hunters! Happy to share with you how I got three valid bugs on VDP Program by shodan help!

Yassin Hamdi, on medium.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 multiple misconfigurations: Spring Boot Actuator endpoints left publicly accessible, an outdated Swagger UI version vulnerable to cross-site scripting via the configUrl parameter, and debug mode enabled on an origin server.

Impact

The exposed Actuator endpoints could leak sensitive data such as tokens and internal structure; the Swagger UI XSS could execute scripts in a victim's browser; and the debug information exposure revealed internal paths and server details, though the text does not specify the full extent of exploitation.

What the attacker needed

Target uses Spring Boot Actuator; Target uses outdated Swagger UI; Debug mode enabled on origin server; Shodan access (free or paid)

The fix

The text does not state that the issues were fixed, but recommends restricting access to heap dumps and ensuring they are not exposed in production environments.

How it was found

  1. Searched Shodan using an SSL certificate subject filter to find IPs for the target domain.
  2. Changed the Shodan view to show HTTP titles and identified interesting pages like 'Whitelabel Error Page' and 'Swagger UI'.
  3. For the first bug, ran dirsearch on an IP with a custom wordlist and found exposed Actuator endpoints such as /actuator/heapdump and /actuator/beans.
  4. For the second bug, opened a Swagger UI page, checked its version, and tested the configUrl parameter with an external URL to trigger XSS and HTML injection.
  5. For the third bug, found a subdomain showing a debug mode error, searched Shodan for its origin IP, and accessed the origin IP to see debug information exposed.

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 researcher used a search engine called Shodan to find servers belonging to a company. Some servers had misconfigured pages that revealed too much information, like memory dumps or error details, and one had an old version of a documentation tool that allowed injecting malicious scripts. These mistakes could let an attacker learn secrets or trick users into running harmful code.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by hamdiyasin135

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.