missing-cve-nuclei-templates icon indicating copy to clipboard operation
missing-cve-nuclei-templates copied to clipboard

Add JSON data format

Open edoardottt opened this issue 1 year ago • 2 comments

Add JSON data format

edoardottt avatar Nov 29 '23 10:11 edoardottt

cc @bernard-yip

I've fixed some issues with the JSON data format + input.

However, there are still things that are not working properly and I cannot merge the changes into main.

Invalid JSON:

cat data/all.json | jq .
jq: parse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 153162, column 1514

Here the corrupted line:

{
  "cve": "CVE-2024-21690",
  "category": " XSS  XSS",
  "url": "https://github.com/trickest/cve/blob/main/2024/CVE-2024-21690.md",
  "description": "This High severity Reflected XSS and CSRF (Cross-Site Request Forgery) vulnerability was introduced in versions 7.19.0, 7.20.0, 8.0.0, 8.1.0, 8.2.0, 8.3.0, 8.4.0, 8.5.0, 8.6.0, 8.7.1, 8.8.0, and 8.9.0 of Confluence Data Center and Server. 		This Reflected XSS and CSRF (Cross-Site Request Forgery) vulnerability, with a CVSS Score of 7.1, allows an unauthenticated attacker to execute arbitrary HTML or JavaScript code on a victims browser and force a end user to execute unwanted actions on a web application in which they're currently authenticated which has high impact to confidentiality, low impact to integrity, no impact to availability, and requires user interaction. 		Atlassian recommends that Confluence Data Center and Server customers upgrade to latest version, if you are unable to do so, upgrade your instance to one of the specified supported fixed versions:				* Confluence Data Center and Server 7.19: Upgrade to a release greater than or equal to 7.19.26				* Confluence Data Center and Server 8.5: Upgrade to a release greater than or equal to 8.5.14				* Confluence Data Center and Server 9.0: Upgrade to a release greater than or equal to 9.0.1						See the release notes (https://confluence.atlassian.com/doc/confluence-release-notes-327.html). You can download the latest version of Confluence Data Center and Server from the download center (https://www.atlassian.com/software/confluence/download-archives). 		This vulnerability was reported via our Bug Bounty program. "
},

Also what about double quotes?

For sure double quotes must be escaped when used in the description of a CVE (using sed, " -> \").

edoardottt avatar Dec 02 '24 14:12 edoardottt

Added a function that checks weird characters for json jq command. Now all.json can be inputted in jq.

edoardottt avatar Jul 28 '25 08:07 edoardottt