Skip to content
Info disclosure Write-up Intermediate

Journey from FOFA Dorking to Critical Remote Access

A JavaScript file on a VNC infrastructure subdomain exposed a secret token and namespace identifiers, which allowed the author to construct API URLs and obtain further secrets. Using these, the author reached a VNC web interface that offered user or administrator login to virtual machine instances.

medium.com

Published on medium.com

بس� الله، والصلاة والسلا� على رسول الله الح� د لله الذي عَلَّ� َ بالقل� .. عَلَّ� َ الإنسانَ � ا ل� يَعْلَ� والصلاةُ والسلا� ُ على خيرِ � ُعَلِّ� ي الناسِ الخير � ح� د

MahmoudKroush (xgoon), 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, sensitive secrets and namespace identifiers were embedded in client-side JavaScript and exposed through unauthenticated API endpoints, allowing construction of VNC access URLs.

Impact

The author could potentially gain unauthorized remote desktop access to virtual machine instances, with the option to log in as a user or administrator.

What the attacker needed

Internet access; target uses FOFA-indexed hosts; no authentication required

How it was found

  1. Search FOFA for hosts under the target domain containing the word 'secret' in the body.
  2. View the page source of the discovered subdomain and find the word 'secret' in JavaScript.
  3. Extract the namespace and reservation variables from the JavaScript.
  4. Request the namespaces API endpoint to obtain namespace IDs.
  5. Construct the secrets endpoint URL using a namespace ID to retrieve a secret token.
  6. Use the apiPrefix and namespace ID to request virtualmachineinstances and extract a new secret key.

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.

A website's JavaScript file accidentally contained a secret word and identifiers. By combining these with predictable web addresses, the author could ask the server for more secrets and eventually open a remote desktop screen. This means anyone who found the same file could try to control the virtual machines.

What is Info disclosure?

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

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.