Low energy morning, so instead of fixing bugs I'll just add UPX packing on my docker images' binaries.

#golang #go #upx

Release UPX 5.0.0 · upx/upx

Please see the file NEWS for a detailed list of changes. Note: all versions are functionally equivalent, i.e. each version can handle all executable formats, so you only need the file that runs on ...

GitHub
NF.sec – Bezpieczeństwo systemu Linux - Upakowane ELFy – czerwona flaga dla pliku binarnego w Linuksie

U ltimate Packer for Executables (UPX) to program pakujący dla kilku formatów wykonywalnych, takich jak biblioteki DLL systemu Windows, aplikacji macOS oraz Linux ELF. Jak możemy przeczytać na oficjalnej stronie programu UPX: “potrafi zazwyczaj zmniejszyć rozmiar plików programów i bibliotek DDL o około 50% – 70%, redukując w ten sposób miejsce na dysku, czas ładowania […]

upx太强了吧。go语言写的程序,用go 1.20 自带的编译器进行静态编译,可执行文件有5MB那么大。用UPX 等级1的参数进行压缩,文件体积竟然能降到2.3MB。

命令如下:

go build -ldflags '-s -w' -trimpath -v -o output.bin main.go && upx -1 output.bin

#go #upx #filesize

#upx классная штука
Например, бинарники #mc и #nano без проблем жмутся в 2 раза
Если не жадничать, можно жать по минимуму и получить выигрыш в скорости

@RL_Dane Oh, compressing executables still makes sense in *some* scenarios (relevant size reduction, not using a filesystem with transparent compression, "slow" storage media ...).

But then, #gzexe doesn't really cut it. It needs temporary files for decompression (spoiling most possible speed gains), and compression rates are mediocre. So *if* you have a use case for compressed executables, you'd better have a look at #upx, which achieves better rates and decompresses in-memory, in-place.

Heap Buffer Overflow in UPX Identified

Date: March 26, 2024
CVE: To be assigned
Vulnerability Type: Buffer Errors
CWE: [[CWE-122]]
Sources: NIST VULNDB VULNDB Submit

Issue Summary

A heap buffer overflow vulnerability was identified in the [[UPX|Ultimate Packer for eXecutables]] (UPX), specifically in the commit 06b0de9c77551cd4e856d453e094d8a0b6ef0d6d. This issue occurs during the handling of certain data structures, leading to potential memory corruption. The vulnerability was discovered through fuzzing techniques using the Google OSS-Fuzz project.

Technical Key findings

The vulnerability is caused by improper handling of input data, resulting in a heap buffer overflow. This overflow occurs in the handling of packed files during decompression, where the bounds of allocated heap memory are not properly checked.

Vulnerable products

  • [[UPX]] version identified by commit 06b0de9c77551cd4e856d453e094d8a0b6ef0d6d.

Impact assessment

An attacker could exploit this vulnerability to execute arbitrary code on the target system or cause a denial of service through application crash, potentially compromising the system's integrity and availability.

Patches or workaround

No specific patches or workarounds were mentioned at the time of reporting. Users are advised to monitor the official [[UPX]] GitHub repository for updates.

Tags

#UPX #BufferOverflow #HeapOverflow #SecurityVulnerability #CVE

NVD - CVE-2024-3209

A perda no arranque da aplicação que foi compactada pelo #upx é muito pequena. Ferramenta fantástica. :)
04/05 Budweiser sponsors #GOTransit , #UPX rides for Blue Jays opener | via @CP24 https://buff.ly/XKY3YH https://buff.ly/41gvgxV
CP24 – Breaking News, Toronto News Today

CP24 is your source for live updates and breaking news on today's Toronto news, traffic, and weather.

Yikes! "80 per cent [14 of 18 train cars] of the fleet grounded, it’s certainly possible that those four units are impacted." #Toronto #Transit #UPX #Metrolinx #Trains

https://toronto.ctvnews.ca/14-of-18-up-express-train-cars-condemned-after-thermal-cracks-found-in-brake-discs-union-1.6269375

Most UP Express train cars 'condemned' after thermal cracks found in brake discs: union

Most of the fleet servicing the UP Express has been removed from operation after thermal cracks were discovered in the vehicle brake discs, according to the maintenance and operators’ union and confirmed by several sources, leaving Metrolinx with only four train cars in service for the rail link connecting Pearson International Airport to downtown Toronto.

Toronto