Better HN
topnewbestaskshowjobs
Log inSign up

ChALkeR

66 karma · joined Dec 6, 2015 (10y ago) · 31 submissions

[ my public key: https://keybase.io/chalker; my proof: https://keybase.io/chalker/sigs/s4pY6mFQ3GplQr1rC_cYRZ_KFHPkjLrJyOgnVgWsuxQ ]
Submissions

1.

How I obtained publish access to 13% of npm packages (including popular ones)(github.com ↗)

5 points · by ChALkeR · 9y ago · discuss

comment 9y ago · link · parent

The correct figure is 10%.

3.

Stealing Travis secure variables (and Snap CI too)(github.com ↗)

2 points · by ChALkeR · 10y ago · discuss

4.

Mongoose security update – if you use Buffer schema type, update now(github.com ↗)

2 points · by ChALkeR · 10y ago · discuss

comment 10y ago · link · parent

Done: https://news.ycombinator.com/item?id=10909727

comment 10y ago · link · parent

I tried hard to cover all the possible question. Please, read the post _carefully_ before asking or proposing anything.

7.

Let's Fix Node.js Buffer API(github.com ↗)

2 points · by ChALkeR · 10y ago · 1 comment

comment 10y ago · link · parent

Note: this actually means that everyone should regenerate all their key-pairs after updating.

comment 10y ago · link · parent

And no, switching Buffer(number) to be zero-filled will bring more harm now, even from the security point of view. The best course of action imo is to deprecate Buffer(number) whatsoever and replace it with two separate methods. More info here: https://github.com/nodejs/node/issues/4660#issuecomment-1712...

I will make a separate post about that soon enough.

comment 10y ago · link · parent

This note does not have anything actually new, but I have seen several people who are not aware of that.

11.

Node.js Buffer knows everything – your traffic, sources, keys and configs(github.com ↗)

5 points · by ChALkeR · 10y ago · 5 comments

comment 10y ago · link · parent

Looks like it bundles libavformat internally.

comment 10y ago · link · parent

By the way, mplayer is also affected, even after installing a fixed version of ffmpeg.

comment 10y ago · link · parent

It does not, that's covered in the original article.

comment 10y ago · link · parent

But that code that you linked to does not verify that the file is mp4, moreover, mp4Sig call is commented out.

comment 10y ago · link · parent

Tell me if I should not have double-posted it here, I will delete one of those posts then.

comment 10y ago · link · parent

Re-posted as https://news.ycombinator.com/item?id=10895872

comment 10y ago · link · parent

Short English description:

ffmpeg vulnerability allows reading local files and sending them over network using a specially crafted video file. This affects not only file conversion (including thumbnail generation), but also any other operations that involve ffmpeg processing your file — for example, ffprobe is affected. This is not remote code execution, the vulnerability is limited to reading local files and sending them over network, but that is already bad enough.

For example, a specially crafted «video» file uploaded to your server by an attacker could read your website config/private keys/etc and send that to the attacker once you try to generate a thumbnail for it or just probe it with ffmpeg.

On a PC, you don't even need to open a file to get affected, just downloading it would be enough in some cases — video files are processed with ffmpeg for filemanager thumbnails (i.e. KDE Dolphin), for search indexers, etc.

That vulnerability is public, has code samples to reproduce and build a malicious file, and is not fixed atm.

The recommended quick fix is to rebuild ffmpeg without network support (--disable-network configure flag).

Original post: http://habrahabr.ru/company/mailru/blog/274855/

The original text is in Russian, use https://translate.yandex.com or https://translate.google.com/ to read it.

comment 10y ago · link · parent

Previosly posted as https://news.ycombinator.com/item?id=10893301, but that eneded up in [ask] due to my mistake.

20.

Ffmpeg vulnerability allows the attacker to get files from your server or PC(translate.google.com ↗)

14 points · by ChALkeR · 10y ago · 5 comments

comment 10y ago · link · parent

https://translate.google.com/translate?sl=ru&tl=en&u=http%3A... will work better, I suppose.

comment 10y ago · link · parent

Should I post this again with a link so it ends up in the news or not?

comment 10y ago · link · parent

Hm. Why did this end up in [ask]? Perhaps I made a mistake when posting this =).

comment 10y ago · link · parent

It's «PC» as in «server»/«PC», not as in «mac»/«PC».

25.

Tell HN: Ffmpeg vulnerability allows attacker to get files from server or PC

69 points · by ChALkeR · 10y ago · 24 comments

comment 10y ago · link · parent

It's listed here: https://docs.npmjs.com/misc/developers#keeping-files-out-of-...

comment 10y ago · link · parent

Sigh… Yet another mention of an automatic tool. I guess that I will update the Q/A section to reflect my opinion on such automatic tools.

Edit: done.

comment 10y ago · link · parent

https://github.com/npm/npm/releases/tag/v2.14.1

> npm will no longer include .npmrc when packing tarballs.

comment 10y ago · link · parent

You should not trust automatic tools to do that. They will inevitably be subject to both false negatives and false positives, and will most probably just give you a false sense of security but will not protect you from the actual leak.

You should better review stuff that you publish. That includes commit review, package contents review before publishing them, config files review, logs review before sharing them.

If you have an org — it would better to educate your devs more and make each commit go through an independent review. Also, don't forget about checking package contents.

comment 10y ago · link · parent

For spelling/grammar — yes.
12