External Script Fetching
- Category
- Supply Chain
- Confidence
- 90% confidence
- Finding
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
- Content
jqhas no HTML decoder, so pipe through Python:bash curl -sA "$UA" "$BASE/wp-json/wp/v2/posts?per_page=5&categories_exclude=$EXPIRED&_fields=date,title" \ | python3 -c 'import sys,json,html for p in json.load(sys.stdin): print(p["date"][:10], html.unescape(p["title"]["rendered"]))'
