Flaws found in BSD, Linux software updaters

The software update mechanisms used by most BSD and Linux operating systems can be tricked into installing buggy or known-to-be-compromised software on users' systems, creating serious security risks, according to new research.

The study Package Management Security, to be published in a forthcoming issue of the University of Arizona Tech Report, analysed 10 package managers and found that all were vulnerable to exploits, allowing attackers to install unsafe software on target systems.

Package managers are designed to automatically keep software up-to-date and thus safe from known vulnerabilities. The packages analysed in the study were APT, APT-RPM, Pacman, Portage, Ports, Slaktool, Stork, Urpmi, Yast and YUM.

"Given their critical role, the expectation would be for package managers to be extremely secure," said the researchers in the report. "We examined 10 popular package managers for Linux and BSD systems and found vulnerabilities in all of them."

The attacks outlined in the study could give an attacker the ability to read or erase files on the system, capture passwords, set up a backdoor into the system or carry out other malicious activity, the researchers said.

The technique outlined by the University of Arizona researchers is not to feed malicious code directly to a target system via a package manager, but rather to cause the package manager to install an older piece of legitimate software with known bugs, or to prevent the system from updating to a newer software package that fixes known bugs.

The attacks work because of flaws in the system of secure signatures for packages and for the metadata describing the packages in a repository, the researchers said.

In the case of many distributions, the signatures either never expire or the package manager used by the distribution isn't set up to support signature expiry.

"This means that, even after a package has a vulnerability discovered in it, clients will continue to be willing to install that insecure package," the researchers wrote. "An attacker can replay the correctly signed packages or metadata from a previous release and your computer will install software with flaws that the attacker can exploit."

For example, even though known flaws exist in an older version of OpenSSL for Debian, the list of flawed files is still correctly signed. This means an illicit mirror - a deliberately tainted archive of the files, set up to communicate with package managers can be created and used for distribution.

"Using this old, signed file list, a malicious mirror can keep a client on the insecure version of OpenSSL by responding to the client's package manager with the old list of files," the report stated.

The researchers found that it was not a problem to set up a malicious mirror. They created a fake administrator and company name and leased a server from a hosting provider, and were able to get the fake mirror listed officially by the distributions Ubuntu, Fedora, OpenSuse, CentOS and Debian.

The fake mirror was contacted by thousands of clients, including military and government computers, the study reported.

Administrators can protect their systems in the short term by using trusted repositories, manually updating systems, using signed repository metadata and using the secure HTTPS protocol for communications with mirrors, the study said.

For the longer term, the researchers urged the wider use of signed repository metadata and metadata expiration.

Talkback

Add your opinion

In order to post a comment, you need to be registered. (Sign In or register below)

Post your comment

Terms of Service - As a ZDNet registrant, and by using this service, you indicate that you agree to our Terms and Conditions and have read and understand our Privacy Policy.

Tech Blueprint

ZDNet Australia Live

We Are Specialty Supply Miu Miu Handbags, Miu Miu Pocketbook, Miu Miu Sunglasses And So On. Miu Miu Car-boot sale Online Strapping Reduct...

4 minutes ago by ExedegamEmodo on Reservoir blogs: Fan fakes Tarantino diary

RT @stilgherrian: RT: Me at @zdnetaustralia: "NSA, FBI split on comms intercepts" http://t.co/Y32rF8Gz #AusCERT

RT: Me at @zdnetaustralia: "NSA, FBI split on comms intercepts" http://t.co/Y32rF8Gz #AusCERT

RT @stilgherrian: RT: Me at @zdnetaustralia: "NSA, FBI split on comms intercepts" http://t.co/Y32rF8Gz #AusCERT

18 minutes ago by forporoExpoxy on Reservoir blogs: Fan fakes Tarantino diary

Goods Shopping Location Diminish Of Japan's Largest Overseas Train Brands. Coach Outlet Recover 89% Off.We Entertain Stuffed Items Such A...

19 minutes ago by MentIdott on Reservoir blogs: Fan fakes Tarantino diary

Our Stow away Tender Exercise Bags Of The Cheapest Quotation, 50-75% OFF. Secured Shipping To Japan. Detailed Inferior Instructor Handbag...

30 minutes ago by Hieffiftsoinc on Reservoir blogs: Fan fakes Tarantino diary

http://t.co/gNQkl0gd

1963年ナイキの創業者フィル・ナイトが訪日、オニツカ(現アシックス)の経営陣を訪問。 最新の機...

42 minutes ago by Scafthapthinc on Reservoir blogs: Fan fakes Tarantino diary

42 minutes ago by antaftilk on Reservoir blogs: Fan fakes Tarantino diary

Our Aggregate Wholesale Trainer Bags Of The Cheapest Consequence, 50-75% OFF. Self-indulgent Shipping To Japan. Exquisite Worthless Drill...

51 minutes ago by meltygypent on Reservoir blogs: Fan fakes Tarantino diary

Celine belongings,Celine case,purse Celine,CELINE Celine is synonymous with je sais quoi and faultlessness prevalent since founding in 19...

54 minutes ago by dendyBymNTedo on Reservoir blogs: Fan fakes Tarantino diary

Global mobile phone sales take a hit; Nokia yields to Apple, Samsung http://t.co/95pDxClp

1 hour ago by Fedaupdat on Reservoir blogs: Fan fakes Tarantino diary

Global mobile phone sales take a hit; Nokia yields to Apple, Samsung - ZDNet (blog): Global mobile phone sales t... http://t.co/GtLqWFz1

ABC's Bitcoin miner tackled in minutes: The Australian Broadcasting Corporation (ABC) looked set to become a hav... http://t.co/qq5oPZ15

ABC's Bitcoin miner tackled in minutes: The Australian Broadcasting Corporation (ABC) looked set to become a hav... http://t.co/7v06Ygfl

ABC's Bitcoin miner tackled in minutes: The Australian Broadcasting Corporation (ABC) looked set to become a hav... http://t.co/z7ngF4XL

Admits? Don't fall for their marketing. Vista was beautiful. Microsoft has a history of trashing their older OSes.

1 hour ago by anonymuos on Microsoft admits Vista was 'cheesy'

Oracle v. Google loses another juror: By Rachel King, ZDNet US on May 21st, 2012 (7 hours ago) Rather than 12 An... http://t.co/nflnWgb9

RT @MSDynamicsCRM: Great article on ZDNet - Microsoft #Dynamics #CRM saves email-drowned Australian Power and Gas http://t.co/LKjZzQcR #msdyncrm #crm2011 ^pb

Gotta agree. For our Burnie, Tas. internet, we have a 1.5MB download speed adls connection through exetel using testra copper line. ADS...

2 hours ago by brozza on Broadband Speedtest

Vic councils tender for VMware partner http://t.co/diHsmLt6

Govt set for electorate office IT refresh: The Department of Parliamentary Services (DPS) is waiting for existin... http://t.co/FYaojbCN

RT @zdnetaustralia: In this week's Patch Monday we look at the themes of last week's AusCERT security conference. http://t.co/XMRm8n9k ^ST

Facebook tracking you after you logout, isn't that against the law? To stop this, go to the settings / options /... http://t.co/6Gzl4Eht

Vic councils tender for VMware partner - ZDNet Australia http://t.co/3XreTY9E

RT @zdnetaustralia: In this week's Patch Monday we look at the themes of last week's AusCERT security conference. http://t.co/XMRm8n9k ^ST

RT @zdnetaustralia: In this week's Patch Monday we look at the themes of last week's AusCERT security conference. http://t.co/XMRm8n9k ^ST

RT @zdnetaustralia: In this week's Patch Monday we look at the themes of last week's AusCERT security conference. http://t.co/XMRm8n9k ^ST

Vic councils tender for VMware partner: in brief A 58-strong consortium of Victorian regional coun... http://t.co/nEA6Gs8G #VMware #News

RT: New "Patch Monday" podcast: "War talk dominates #AusCERT 2012" http://t.co/utUIf5Mw

RT @zdnetaustralia: 58 Victorian councils looking for new VMware partner: http://t.co/HqOuEOK9 ^LH

RT @JamesVickery: Microsoft launches its own social service http://t.co/xthGjXI5

ZDNet App Wrap: 21 May 2012 http://t.co/rQ6ZoKAc

ABC's Bitcoin miner tackled in minutes http://t.co/Ue6A5qnp

by http://t.co/vmlQ0Ecb: Govt set for electorate office IT refresh: The Department of Parliamentary Services (DPS... http://t.co/25budC2T

RT @zdnetaustralia: In this week's Patch Monday we look at the themes of last week's AusCERT security conference. http://t.co/XMRm8n9k ^ST

National Botnet Network coming: Earthwave http://t.co/ChqUVcgs #ddos

ABC's Bitcoin miner tackled in minutes http://t.co/hF0MzDsE

Govt set for electorate office IT refresh: The Department of Parliamentary Services (DPS) is waiting for existin... http://t.co/AOzluavp

MPs won't get Wi-Fi in their electorate offices paid by Parliamentary Services until the current contracts run out. http://t.co/EcoNgTnR

ABC's Bitcoin miner tackled in minutes - ZDNet Australia: Sydney Morning HeraldABC's Bitcoin miner tackled in mi... http://t.co/tKnRlZdW

58 Victorian councils looking for new VMware partner: http://t.co/HqOuEOK9 ^LH

RT @Daily_Donkey: National Botnet Network coming: Earthwave - ZDNet Australia http://t.co/keLouVk8 #cyberwar

ABC's Bitcoin miner tackled in minutes - ZDNet Australia http://t.co/Zi6QUkuQ #australia #technews

Well the message certainly is clear. Never do anything because something might happen. Seriously it seems to me "Earthwave" just want to...

4 hours ago by Hubert Cumberdale on National Botnet Network coming: Earthwave

you really think it's going to be such a grim future? looking at South Korea, Japan, even Czech Republic - I haven't seen either emit mo...

6 hours ago by romant on National Botnet Network coming: Earthwave

No... they'll just blame the NBN for that too ;-)

6 hours ago by Beta on National Botnet Network coming: Earthwave

It seems that some of the people who set up ACCAN (not staff members) took the view that it would somehow be against their view of 'consu...

7 hours ago by socrates on ACCAN gets govt tick amid industry criticism

Don't laugh, Mr Turnbull is dumb enough to try and use this against the NBN. I'm sure the noallitions magical FTTN will be impervious to ...

7 hours ago by Jingles on National Botnet Network coming: Earthwave

OMG, the sky will fall if we get NBN - it must be cancelled immediately! Sorry; was just channelling Malcolm Turnbull there for a moment...

7 hours ago by socrates on National Botnet Network coming: Earthwave

Thats just stupid.. what else is the NBN going to get blamed for? People die crossing the road, are you going to ban cars or police it b...

7 hours ago by fibretech on National Botnet Network coming: Earthwave

And again - missed this bit did you? "... Telstra is responsible for estates where development approval was granted before 1 January 201...

8 hours ago by Beta on Copper greenfield dominance irrelevant: Conroy

I think the idea of dropping aero glass bit of a mistake. At least have some colour. Thats something i liked (especially after working on...

8 hours ago by JCOZ on Microsoft admits Vista was 'cheesy'

Facebook Activity

Keep up with ZDNet Australia

ZDNet Events Calendar

ZDNet Events Calendar