Non-standard characters that break JSON.parse()
29
Characters that will break a JSON.parse() that do not include chars within standard JSON-format.
Created by: DreyAnd
Created on: Friday, November 15, 2024 at 12:28:16 AM
Updated on: Thursday, November 21, 2024 at 5:00:07 AM
Vector type: JS
Vector charset: UTF-8
Template used:
try {
standard_chars = [
`"`, `'`, `,`, `\n`, `\t`, `\r`, `}`, `{`, `\\`
];
if (!standard_chars.includes(String.fromCodePoint($[i]))) {
JSON.parse(`{"test":"$[chr]"}`);
}
} catch {
log($[i]);
}
Your browser was detected as:
Detecting... Detecting... Detecting... Detecting...
Sample payloads
try {
standard_chars = [
`"`, `'`, `,`, `\n`, `\t`, `\r`, `}`, `{`, `\\`
];
if (!standard_chars.includes(String.fromCodePoint(0))) {
JSON.parse(`{"test":"