google / tsunami-security-scanner-plugins

This project aims to provide a central repository for many useful Tsunami Security Scanner plugins.
Apache License 2.0
860 stars 178 forks source link

add plugin CVE-2024-21650 #386

Closed YuriyPobezhymov closed 5 months ago

YuriyPobezhymov commented 5 months ago

Hey,

this PR for the Vuln Detector Plugin for https://nvd.nist.gov/vuln/detail/CVE-2024-21650 (see Issue)

In order to verify the vulnerability, I used two different docker environment types, one for the vulnerable version and the other for the fixed version.

To get them pls clone https://github.com/xwiki/xwiki-docker.git. There are several versions of XWiki. I did use all of them for testing purpose. "15" folder contains latest one.

I can show you how to prepare it for testing:

  1. Go to folder with docker-compose.yml;
  2. There is file .env that we can modify for our purposes;
  3. Rename file to .env-true-negative;
  4. Create copy of file with .env-true-positive name;
  5. Change XWIKI_VERSION value there inside to vulnerable one - in my case to 15.7.0 in the current folder;

To run vulnerable version: docker-compose --env-file .env-true-positive -p xwiki-true-positive up -d

Fixed version: docker-compose --env-file .env-true-negative -p xwiki-true-negative up -d