encodedWordMeta
This tag creates the meta data required for encoded word in email parsing attacks. You can read more about it here: https://portswigger.net/research/splitting-the-email-atom
Created by: hackvertor
Installed 3 times
Viewed: 843
Category: Email
Created on: Tuesday, September 17, 2024 at 12:06:07 PM
Updated on: Friday, May 30, 2025 at 9:37:27 PM
Tag arguments
[
   {
      "type": "string",
      "help": "Provides a charset",
      "defaultValue": "iso-8859-1"
   },
   {
      "type": "quotelessString",
      "help": "Provides a encoding type: q or b is supported",
      "defaultValue": "q"
   }
]Code
class encodedWordMeta {
  encode(input, charset, type) {
     return `=?${charset}?${type}?${input}?=`;
  }
}