frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Yet Another Zip Trick

https://hackarcana.com/article/yet-another-zip-trick
43•todsacerdoti•3d ago

Comments

soupfordummies•8h ago
Obviously it sucks in the real world but I do always appreciate the cleverness of exploits like these.
netsharc•8h ago
The described exploit seems theoretical. In order to create the schizophrenic ZIP, the attacker would have to figure out what ZIP stacks are being used and ensure they act differently - if the 2 departments use the same stack, then the exploit can't work, can it?
B1FF_PSUVM•7h ago
Like spam, the exploit would still be profitable if only a small fraction worked.
wat10000•5h ago
A more realistic attack would be something like, slipping a malicious payload past a scanner by emailing a zip file that appears innocent when unpacked with the scanner’s zip implementation but produces malware when unpacked with the email client’s implementation. There’s a decent chance they’ll be different, and it wouldn’t be too hard to guess which ones a target might be using.
o11c•5h ago
Often you don't have to guess, just use how the software responds as an oracle.
JdeBP•4m ago
None of this stuff is theoretical. It's just old.

There was a time when passing ZIP files around was a very popular method of software distribution, and things like this were gotchas that had to be watched for. It was widely known, at least amongst sysops, that the varied toolsets that handled ZIP archives were functionally different. And there were scanners and sanity checkers, and bugfixes to PKUNZIP, that dealt in this stuff for uploaded files and FREQ responses.

Did people exploit the differences? Yes. Although it was mainly on the level of creating prank ZIP files on non-Microsoft operating systems with 8.3 filenames such as "PRN" or "CLOCK$".

* https://groups.google.com/g/alt.comp.virus/c/zLV-Y2a71gs/m/U...

However, the truly terrible idea of self-extracting archives was popular, which meant that archives with "interesting" arrangements of the archive within the overall file were widespread. ZIP comments were also liberally applied and altered by pretty much every BBS that passed an archive along. And the Unix people wanted to be able to use pipes, something that the MS-DOS original never had to cater for.

Also, there were people who exploited the fact that different tools took different things as gospel. Even within the past decade one can find people still being caught out by the fact that there's a header field that instructs what the pathname separator character(s) used are; and that ZIP tools that expect non-seekable streams operate differently to ZIP tools that expect seekable regular files.

wingmanjd•6h ago
Since docx files are similar to a zip file with the extension changed, could this trick fake out Microsoft Word?
mlyle•6h ago
The trick depends upon different implementations doing different things. Not likely for Word (though I suppose it is -possible- across different versions or different OSes).
netsharc•4h ago
To respond to Grandfather comment, modern Office files are really just ZIPs with different extensions, they even have the magic string "PK" at the very beginning of the file.

I do wonder, since a lot of tools outside of the MS ecosystem can read Office files (e.g. LibreOffice and Google Docs as well as plenty of other online tools), if indeed the hack as described by the article is possible. One would just need to figure out the ZIP stacks used by said tools.

saghm•1h ago
You can even just rename a docx file to use the zip extension and then manually unzip it for those curious. If I remember correctly, the contents are XML files with structure encoding the formatting around the content.
o11c•5h ago
I don't see anything "another" about this; this problem is well known by $((CURRENTYEAR-10)) or so.
sp0rk•5h ago
The author explains in the article that they previously gave a presentation outlining various techniques to achieve a "schizophrenic" zip file. The blog post discusses an additional technique that was not present in their previous presentation.

Hidden interface controls are affecting usability

https://interactions.acm.org/archive/view/july-august-2025/stop-hiding-my-controls-hidden-interface-controls-are-affecting-usability
365•cxr•8h ago•203 comments

Serving 200M requests per day with a CGI-bin

https://simonwillison.net/2025/Jul/5/cgi-bin-performance/
120•mustache_kimono•7h ago•73 comments

Local-first software (2019)

https://www.inkandswitch.com/essay/local-first/
664•gasull•17h ago•220 comments

July 5, 1687: When Newton Explained Why You Don't Float Away

https://multiverseemployeehandbook.com/blog/when-newton-explained-why-you-dont-float-away/
34•TMEHpodcast•3h ago•17 comments

Are We the Baddies?

https://geohot.github.io//blog/jekyll/update/2025/07/05/are-we-the-baddies.html
155•AndrewSwift•2h ago•72 comments

Eastern Baltic cod grow much smaller than they did due to overfishing

https://www.smithsonianmag.com/smart-news/these-cod-have-been-shrinking-dramatically-for-decades-now-scientists-say-theyve-solved-the-mystery-180986920/
178•littlexsparkee•13h ago•57 comments

What a Hacker Stole from Me

https://mynoise.net/blog.php
139•wonger_•9h ago•32 comments

How to Network as an Introvert

https://aginfer.bearblog.dev/how-to-network-as-an-introvert/
155•agcat•10h ago•60 comments

Injection Rejection (2006)

https://thedailywtf.com/articles/Injection_Rejection
31•dontTREATonme•4h ago•13 comments

Development of a transputer ISA board

https://nanochess.org/transputer_board.html
9•nanochess•2d ago•1 comments

Show HN: News Alert ,Real-time global news monitoring with keyword alerts

https://newsalert.im/
11•zxcholmes•5h ago•1 comments

Europe's first geostationary sounder satellite is launched

https://www.eumetsat.int/europes-first-geostationary-sounder-satellite-launched
182•diggan•17h ago•39 comments

Volvo delivers 5,000th electric semi with little fanfare

https://electrek.co/2025/06/29/volvo-delivers-5000th-electric-semi-with-little-fanfare-sending-a-big-message/
91•JumpCrisscross•5h ago•23 comments

The Force-Feeding of AI on an Unwilling Public

https://www.honest-broker.com/p/the-force-feeding-of-ai-on-an-unwilling
19•imartin2k•1h ago•12 comments

ClojureScript from First Principles [video]

https://www.youtube.com/watch?v=An-ImWVppNQ
55•puredanger•3d ago•5 comments

Optimizing Tool Selection for LLM Workflows with Differentiable Programming

https://viksit.substack.com/p/optimizing-tool-selection-for-llm
81•viksit•11h ago•34 comments

macOS Icon History

https://basicappleguy.com/basicappleblog/macos-icon-history
176•ksec•16h ago•71 comments

X-Clacks-Overhead

https://xclacksoverhead.org/home/about
222•weinzierl•4d ago•52 comments

Speeding up PostgreSQL dump/restore snapshots

https://xata.io/blog/behind-the-scenes-speeding-up-pgstream-snapshots-for-postgresql
111•tudorg•15h ago•22 comments

Fast Code Is Easy. Measuring It Is Hard

https://www.architect.co/posts/how-fast-is-it-really
26•auc•3d ago•9 comments

Techno-Feudalism and the Rise of AGI: A Future Without Economic Rights?

https://arxiv.org/abs/2503.14283
125•lexandstuff•10h ago•105 comments

Game publishers respond to Stop Killing Games claim it curtails developer choice

https://www.pcgamer.com/gaming-industry/european-game-publisher-group-responds-to-stop-killing-games-claims-these-proposals-would-curtail-developer-choice/
28•riffraff•2h ago•35 comments

The ancient invention that ignited game play (2021)

https://www.bbc.com/future/article/20210318-the-ancient-invention-that-ignited-game-play
4•bearsyankees•2d ago•0 comments

Show HN: a community for collaborating on sideprojects

https://relentlessly.no/
16•0dKD•3d ago•9 comments

Colombia seizes first unmanned narco-submarine with Starlink antenna

https://www.france24.com/en/americas/20250702-colombia-narco-submarine-starlink
70•thm•4h ago•54 comments

Atomic "Bomb" Ring from KiX (1947)

https://toytales.ca/atomic-bomb-ring-from-kix-1947/
72•gscott•3d ago•20 comments

Laser-wielding device is like an anti-aircraft system for mosquitoes

https://newatlas.com/around-the-home/photon-matrix-laser-mosquitoes/
19•simonebrunozzi•2h ago•13 comments

Yet Another Zip Trick

https://hackarcana.com/article/yet-another-zip-trick
44•todsacerdoti•3d ago•12 comments

Why the simplest desktop agent abstraction wins

https://www.bytebot.ai/blog/designing-bytebot-why-the-simplest-desktop-agent-abstraction-wins
17•atupem•2d ago•3 comments

Chasing Hobbies over Achievement Boosts Happiness (2023)

https://neurosciencenews.com/hedonism-happiness-achievement-23923/
20•gscott•4h ago•4 comments