Exploit database

GH-26c9e15dfeef20ffe8d97ce9d4b12ae1

mr-r3b00t/cve-2025-7775

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2025-7775

7 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files2
mr-r3b00t/cve-2025-7775Revision 46dbaa820690

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

enum.ps1

PowerShell · 3,172 bytes
$targets = Get-Content .\targets.txt | Sort-Object {Get-Random}
# A hacky boi to find netscalers and look at the last modified date on the HTTP header response
# created by mrr3b00t - inspired by https://twitter.com/DTCERT (thanks!)
# for NetScaler (Citrix ADC) CVE-2023-3519
# Modified to output results to CSV with commas removed from timestamps
# Modified to randomize target list
# Modified to set TrustAllCertsPolicy before the foreach loop
# Modified to append date and time to CSV filename

# Set certificate policy to trust all certificates
add-type @"
    using System.Net;
    using System.Security.Cryptography.X509Certificates;
    public class TrustAllCertsPolicy : ICertificatePolicy {
        public bool CheckValidationResult(
            ServicePoint srvPoint, X509Certificate certificate,
            WebRequest request, int certificateProblem) {
            return true;
        }
    }
"@
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy

# Create CSV file with date and time in filename
$currentDateTime = (Get-Date).ToString('yyyyMMdd_HHmm')
$csvFile = "netscaler_scan_results_$currentDateTime.csv"
"TargetIP,DateChecked,TimestampAgeDays,LastModified" | Out-File -FilePath $csvFile -Encoding UTF8

foreach ($target in $targets) {
    $target = "https://" + $target
    $userAgent = [Microsoft.PowerShell.Commands.PSUserAgent]::Chrome

    try {
        $scaler = Invoke-WebRequest -Uri $target -Verbose -DisableKeepAlive -UserAgent $userAgent
        $found = $scaler.RawContent | findstr -i "citrix"

        if ($found) {
            Write-Host "CITRIX FOUND" -ForegroundColor Green
            Write-Host $target

            $dateChecked = (Get-Date).ToString('ddd, d MMM yyyy HH:mm:ss', [CultureInfo]'en-gb').Replace(',', ' ')
            
            if ($scaler.Headers."Last-Modified") {
                $targetDate = $scaler.Headers."Last-Modified".Replace(',', ' ')
                Write-Host $targetDate

                $ts = New-TimeSpan -Start $dateChecked -End $targetDate
                $diff = $ts.Days
                Write-Host "AGE: $diff" -ForegroundColor Cyan

                # Prepare CSV row with commas replaced in timestamps
                $csvRow = "$target,$dateChecked,$diff,$targetDate"
                
                if ($diff -ge -15) {
                    Write-Host "$target,MIGHT BE OK!"
                } else {
                    Write-Host "$target,DANGER OLD DATESTAMP DETECTED" -ForegroundColor Red
                }
            } else {
                Write-Host "Error enumerating" -ForegroundColor Red
                $csvRow = "$target,$dateChecked,,"
            }

            # Append to CSV
            $csvRow | Out-File -FilePath $csvFile -Append -Encoding UTF8
        } else {
            Write-Host "NOT a CITRIX Server" -ForegroundColor Red
            $csvRow = "$target,$dateChecked,,"
            $csvRow | Out-File -FilePath $csvFile -Append -Encoding UTF8
        }
    } catch {
        Write-Host "Error" -ForegroundColor Red
        $csvRow = "$target,$dateChecked,,"
        $csvRow | Out-File -FilePath $csvFile -Append -Encoding UTF8
    }
}