Properties that contain leak the parent URL even when sandboxed

This vector shows all the properties in window and document that contain a URL that leaks the parent URL even when sandboxed.

Created by: Gareth Heyes

Created on: 6/6/2024, 11:25:57 AM

Updated on: 6/20/2024, 8:46:42 PM

Vector type: JS

Code used before fuzz:
const regex = /(?:https?):\/\/shazzer[.]co[.]uk/;
Object.getOwnPropertyNames(window).forEach(prop => {
   try{
      regex.test(window[prop]+'')&&log('window.'+prop)
   }catch{}
});
for(const prop in document){
  try{
       regex.test(document[prop]+'')&&log('document.'+prop);
  } catch{}
}
Template used:
1337
Your browser was detected as:
Detecting... Detecting... Detecting... Detecting...

Fuzz results

Chrome logo
Chrome 125.0.0.0 desktop macOS 10.15.7
Found 1 result
Data
document.baseURI
Safari logo
Safari 17.4 desktop macOS 10.15.7
Found 1 result
Data
document.baseURI
Firefox logo
Firefox 126.0 desktop macOS 10.15
Found 1 result
Data
document.baseURI
Safari logo
Safari 17.5 mobile iOS 17.5.1
Found 1 result
Data
document.baseURI