just-boris
6K posts

just-boris
@justboriss
Building https://t.co/32lRRmtL0V system at @awscloud. All opinions are mine.
Berlin, Germany Katılım Haziran 2012
197 Takip Edilen451 Takipçiler
Sabitlenmiş Tweet

@andrey_sitnik Иронично, но JavaScript все таки участвует атаке
Интересно что мешало им сделать эксплойт целиком на питоне и не скачивать Bun
Русский

Supply chain атаки — это не только про JS.
Вот пример Python-пакета.
По атакующему скрипту, кажется, что это экспорт опыта из npm.
Socket@SocketSecurity
🚨 The popular PyPI package lightning has been compromised in a supply chain attack. Socket detected malicious code in versions 2.6.2 and 2.6.3 that executes automatically on import, downloads Bun, and runs an 11 MB obfuscated JavaScript payload designed to steal credentials. This appears to be connected to yesterday's mini Shai-Hulud attack, but we're still investigating. #Python
Русский

@JoyeeCheung @kettanaito Technically correct, but also tells a story how relying on a low-level api impedes future development
Lesson learned - do not try to monkey patch node module loader - it will not end well
English

@kettanaito Jest relies on a lower level API for modules which is a different beast. I just started this redesign to address the issues collected in the past 9 years x.com/joyeecheung/st… - a Jest maintainer just sent in a lot of feedback on how we can work together to finally stabilise!
Joyee Cheung@JoyeeCheung
RFC: I have a new proposal to add new vm Module primitives and a SourceTextModuleLoader API to bring the `--experimental-vm-modules` out of experiments in Node.js! github.com/nodejs/node/is…
English

@kettanaito Recalled one more example – Angular patching all timers with their zone.js.
Same result – good intentions, bad at scale
English

@justboriss Companies fell under a spell that decorating standard APIs with their behaviors makes them more native. This is juvenile thinking at best, ill intent at worst.
English

@kettanaito Interesting.
So there already was a smooshgate when Array.flatten api was declined, because there was a library implementing the same method differently.
So we got a lesson that the standard api should be, well, standard
But here we go again, now on the fetch API 🫠
English

The upside for that environment, that is. Patching globals never had any benefit for the end user. It's a plague. Your staff engineers should read this: kettanaito.com/blog/why-patch…
English

@justboriss @subzey То-есть ты согласен, что вместо попапа, лучше б починили сайт?
Русский


@justboriss @subzey Нет что бы вместо этой ерунды выполнять по факту перевода скрипт который разворачивает все теги фонт на странице, сохраняя таким образом переведенный текст, но устраняя конструкцию ломающую реакт.

Русский

Это перекладывание проблемы разработчика на другого разработчика
Сейчас проверил, в Firefox тоже есть функция автоперевода страницы. Она заменяет только текстовые ноды, никакие тэги не вставляет
Так что сообщение "функция автоперевода в вашем браузере сломана, возьмите другой нормальный" будет полностью оправдано
Русский

@justboriss @subzey А как это решает проблему?
Просто объясняет, что проблема связана с переводом?
Ну такое. Мне кажется что это перекладывание проблемы с разработчика на пользователя.
Ссылка на багрепорт хромиума конечного пользователя приведет в полное замешательство, я думаю.
Русский

@kettanaito Running an end-to-end test in a browser is always a unified testing strategy :)
English

@SilentImp @subzey Поэтому с точки зрения вебмастера такое сообщение "плагин перевода забагован на нашем сайте, пользуйтесь на свой риск" вполне оправдано
разве что я еще бы добавил ссылку на тот баг в chromium, чтобы перенаправлять народный гнев по правильному адресу
Русский

@SilentImp @subzey Ну что тут можно сказать
баг репорт о том что перевод ломает react это top10 по голосам среди всех багов
issues.chromium.org/issues/41407169
что тут могут обычные разработчики сделать? выпилить react совсем? ну, такое
Русский

Source maps are more exciting than ever 😉
🔶 Recently standardized! (one year ago)
🔶 An active @TC39 Task Group
🔶 New features imminent: Scopes & Range Maps
Read all about it 👇

English

@justboriss what about typescript? 4Gb is not enough to run tsc
English

@SilentImp Тогда либо спамить all: initial либо shadow dom или iframe
Других вариантов фронтенд-наука пока не изобрела
Русский

@justboriss например кто то добавил правило
input { font-family: fantasy; }
такое можно предотвратить только all: initial на каждом элементе виджета же
можно, но думаю так себе удовольствие
Русский

@lukOlejnik If this value comes from the client, the finding is real.
An attacker may intentionally set the data to the vulnerable range and put your app down.
English






