Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The point still stands. Some wordpress install that references /parralax-plugin.js could be hijacked to server malicious JS with an immutable header.

A possible solution would be to only use the immutable header with integrity html tag.



I think the point is that it would be renamed /parallax-plugin2.js and HTML would be set to reference that instead? That is why immutable cache shouldn't work for the page in the address bar.


The concern here is that even after recovery from the compromise, the site could then never use the name "parallax-plugin.js" again, because a browser might have the cached malware under that name instead of the correct version.


On top of that you as a developer would have to understand what's happening and that it's happening at all. Might be not easy as we have a habit on clearing our cache all too often :)




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: