Characters allowed at hostname

Chrome logo 312
Safari logo 314
Firefox logo 311

Checks what characters can be used as valid URL hostname

Created by: d0ge

Created on: Tuesday, June 11, 2024 at 10:50:32 AM

Updated on: Saturday, December 21, 2024 at 11:50:32 AM

Vector type: JS

Vector charset: UTF-8

Code used before fuzz:
const chars = "abcdefghijklmnopqrstuvwxyz0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";
        let encodings = new Map();
        for (let i = 0; i < chars.length; i++) {
          let c = chars[i];
          for (let i = 127; i < 65536; i++) {
            let str = String.fromCodePoint(i);
            try {
              let payload = `http://${str}example.com`;
              let u = new URL(payload);
              if (u.hostname === `${c}example.com`) {
                log(i)
              }
            } catch {}
          }
        }
Template used:
31337
Your browser was detected as:
Detecting... Detecting... Detecting... Detecting...

Sample payloads

31337

Fuzz results

Chrome logo
Chrome 125.0.0.0 desktop macOS 10.15.7

Updated

Tue Jun 11 2024
Found 312 results
Loading...
Safari logo
Safari 17.5 desktop macOS 10.15.7

Updated

Tue Jun 11 2024
Found 314 results
Loading...
Firefox logo
Firefox 126.0 desktop macOS 10.15

Updated

Tue Jun 11 2024
Found 311 results
Loading...