Skip to content

Commit 1d6bbbe

Browse files
Merge pull request #5 from squaredup/INT-002-more-code-alerts
INT-002-more-code-alerts
2 parents 7e97190 + 53efb2d commit 1d6bbbe

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

src/Config/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// AWS Access Key and Secret Key for testing Secret Scanning.
2-
const AWS_ACCESS_KEY_ID = "AKIA12345678907890";
3-
const AWS_SECRET_ACCESS_KEY = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYRGR444";
2+
const AWS_ACCESS_KEY_ID = "AKIA123456789078905L";
3+
const AWS_SECRET_ACCESS_KEY = "IHF+fhtWyjceTso+J4/o4zQttW7dxYrjCnLG9KqC";

src/api/handler.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// somewhere under src/ (e.g. src/api/handler.ts)
2+
import { runUserCommand } from '../utils/child_process';
3+
import express from 'express';
4+
5+
const app = express();
6+
app.get('/run', (req, res) => {
7+
// req.query.cmd is a recognised taint source
8+
runUserCommand(String(req.query.cmd));
9+
res.send('ok');
10+
});
11+
12+
export default app;

0 commit comments

Comments
 (0)