Use case indexS4 · Angular rewrite verification · browser + command line verification

S4 — Coordinated AngularJS version rewrite

Obfuscation is not patching. This rewrites observable version strings to 1.99.9. It does not upgrade AngularJS at the source.

Origin serves real TodoMVC on AngularJS 1.8.2. This host rewrites every HTML/JS response so scanners never see 1.8.2.

Direct originRewrite Worker
App s4-origin…/ TodoMVC s4…/ TodoMVC
Version ng-version="1.8.2", full: '1.8.2' 1.99.9 everywhere tested
Browser verification

Run a read-only check in this browser. The result explains the response evidence; use the command-line section below for deeper inspection.

Not run yet.

1. Browser verification

  1. Use Open rewrite TodoMVC above for the front-end application. The JavaScript inspection links intentionally open source code, not the app.
  2. Add, edit, complete, and remove a todo. The UI should work without version-mismatch console errors.
  3. Use the browser check above to confirm the HTML and AngularJS responses contain 1.99.9 and no 1.8.2.

2. Command-line verification (copy and run)

# Direct origin still exposes 1.8.2
curl -s https://s4-origin.thecompany-lab.com/ | grep -o 'ng-version="[^"]*"'
curl -s https://s4-origin.thecompany-lab.com/angular.js | grep -o "full: '[^']*'" | head -1

# Rewrite Worker response
curl -s -o /dev/null -w "%{http_code}
" https://s4.thecompany-lab.com/
curl -s https://s4.thecompany-lab.com/ | grep -c '1.8.2'          # expect 0
curl -s https://s4.thecompany-lab.com/angular.js | grep -c '1.8.2' # expect 0
curl -s https://s4.thecompany-lab.com/ | grep -o 'ng-version="[^"]*"'  # 1.99.9

# Spot-check modules
for p in module-a.js module-b.js module-c.js module-d.js app.js; do
  echo -n "$p "; curl -s "https://s4.thecompany-lab.com/$p" | grep -c '1.8.2'
done

Pass criteria