TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Backdooring JavaScript using minifier bugs

211 pointsby joshsharpalmost 10 years ago

5 comments

yoz-yalmost 10 years ago
I wonder. Should one ever use minified javascript code on a server? Assuming that you are using it on your own server and not distributing the code to clients.<p>Is there any benefit to it?
评论 #10108672 未加载
评论 #10108536 未加载
评论 #10111536 未加载
评论 #10110709 未加载
jandalmost 10 years ago
Nice to read text on a clever find.<p>Could somebody please confirm or invalidate my understanding, that this backdoor is just exploitable in addition with other (severe) issues?<p>An attacker would have to have the ability to tailor&#x2F;manipulate JS scripts which should be under control of the victim?<p>Or am i mistaken?
评论 #10108612 未加载
NullCharacteralmost 10 years ago
Really slick. To translate the idea behind compiler backdoors to JS minifier backdoors is pretty clever.
hspakalmost 10 years ago
Applying DeMorgan&#x27;s Law to reduce a few characters in JS seems really overkill...<p>Reading this makes it seem hardly worth saving a few bytes over.
samuellbalmost 10 years ago
This makes me think that there could be similar bugs in the browser, when it JIT-compiles or optimizes Javascript code. That could be used to take control of the whole browser&#x2F;OS if used in an add-on&#x2F;extension (given that it has sufficient privileges).
评论 #10109363 未加载
评论 #10111360 未加载