Entities allowed between slashes on a protocol relative URL

You can place whitespace between slashes, this vector finds out what entities you can place in between them.

Created by: hackvertor

Created on: 7/6/2024, 10:33:43 AM

Updated on: 7/11/2024, 1:03:51 PM

Vector type: JS

Code used before fuzz:
const div = document.createElement('div')
Template used:
div.innerHTML='<a href="/$[data1]/example.com">';
if(div.querySelector('a').host === 'example.com') {
   log('$[data1]');
}
Your browser was detected as:
Detecting... Detecting... Detecting... Detecting...

Sample payloads

div.innerHTML='<a href="/&bsol;/example.com">';
if(div.querySelector('a').host === 'example.com') {
   alert('&bsol;');
}
div.innerHTML='<a href="/&NewLine;/example.com">';
if(div.querySelector('a').host === 'example.com') {
   alert('&NewLine;');
}
div.innerHTML='<a href="/&sol;/example.com">';
if(div.querySelector('a').host === 'example.com') {
   alert('&sol;');
}
div.innerHTML='<a href="/&Tab;/example.com">';
if(div.querySelector('a').host === 'example.com') {
   alert('&Tab;');
}

Fuzz results

Safari logo
Safari 17.5 mobile iOS 17.5.1
Found 4 results
Data
&bsol;
Data
&NewLine;
Data
&sol;
Data
&Tab;
Chrome logo
Chrome 126.0.0.0 desktop macOS 10.15.7
Found 4 results
Data
&bsol;
Data
&NewLine;
Data
&sol;
Data
&Tab;
Firefox logo
Firefox 127.0 desktop macOS 10.15
Found 4 results
Data
&bsol;
Data
&NewLine;
Data
&sol;
Data
&Tab;