News: 1715002627

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

CISA says 'no more' to decades-old directory traversal bugs

(2024/05/06)


CISA is calling on the software industry to stamp out directory traversal vulnerabilities following recent high-profile exploits of the 20-year-old class of bugs.

As part of its long-running series of alerts that promote secure-by-design practices in software, the US cybersecurity agency bemoaned the fact these vulnerabilities exist, despite approaches to eliminate them being established for over two decades.

Directory traversals see users manipulating inputs to gain access to data, sometimes with read and write privileges. Successful exploits can lead to the theft of sensitive data and the wider compromise of systems, CISA said.

[1]

"Directory traversal exploits succeed because technology manufacturers fail to treat user-supplied content as potentially malicious, hence failing to adequately protect their customers."

[2]

[3]

CISA cited the recent maximum-severity [4]vulnerability in ConnectWise's ScreenConnect remote access software (CVE-2024-1708), which researchers described as "embarrassingly easy to exploit."

Another example referenced in the alert was a similar path traversal flaw affecting Cisco AppDynamics Controller (CVE-2024-20345), which flew a little under the radar with a modest 6.5 "medium" severity score back in March.

[5]

Despite only 55 of the total 1,104 vulnerabilities in CISA's Known Exploited Vulnerabilities (KEV) catalog being classed as directory traversals, the threat they present is heightened given the organizations they're targeting.

The security agency warned these vulnerabilities are being used in attacks on the software used by critical infrastructure organizations including the healthcare industry. The threat is especially acute given that this class of bug can also affect cloud services.

"Approaches to avoid directory traversal vulnerabilities are known, yet threat actors continue to exploit these vulnerabilities which have impacted the operation of critical services, including hospital and school operations," the [6]alert [PDF] reads.

[7]Dump C++ and in Rust you should trust, Five Eyes agencies urge

[8]UK lays down fresh legislation banning crummy default device passwords

[9]Exploiting the latest max-severity ConnectWise bug is 'embarrassingly easy'

[10]Target Silicon Valley: Why A View to a Kill actually made sense

"CISA and the FBI urge software manufacturer executives to require their organizations to conduct formal testing to determine their products' susceptibility to directory traversal vulnerabilities."

CISA pointed to two "well-known and effective mitigations" to directory traversal vulnerabilities that should be implemented to prevent attacks on the nation's most critical institutions.

Instead of relying on user input when naming files, developers should consider using a ransom identifier for each file and storing the associated metadata separately

If developers choose not to use this approach, they should limit the types of characters that can be supplied in file names to alphanumeric ones, for example. Removing executable permission from any uploaded files is also recommended

Eliminating directory traversal bugs is just one step towards achieving a truly secure-by-design approach to software. Previous alerts have focused on other areas such as eliminating default passwords, like [11]the UK recently did , and the elimination of [12]SQL injection vulnerabilities .

The agency, along with the other Five Eyes powers, has also long called for an [13]end to the use of memory-unsafe languages , suggesting developers move away from old reliables such as C and C++ to more inherently secure alternatives. ®

Get our [14]Tech Resources



[1] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_security/cso&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2Zjj@l0WwgjXto5kNobCzkwAAAJQ&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_security/cso&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44Zjj@l0WwgjXto5kNobCzkwAAAJQ&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[3] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_security/cso&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33Zjj@l0WwgjXto5kNobCzkwAAAJQ&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[4] https://www.theregister.com/2024/02/21/connectwise_max_severity_bug/

[5] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_security/cso&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44Zjj@l0WwgjXto5kNobCzkwAAAJQ&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[6] https://www.cisa.gov/sites/default/files/2024-05/Secure_by_Design_Alert_Eliminating_Directory_Traversal_Vulnerabilities_in_Software_508c%20%283%29.pdf

[7] https://www.theregister.com/2023/12/07/memory_correction_five_eyes/

[8] https://www.theregister.com/2024/04/29/uk_lays_password_legislation/

[9] https://www.theregister.com/2024/02/21/connectwise_max_severity_bug/

[10] https://www.theregister.com/2012/10/08/view_to_a_kill/

[11] https://www.theregister.com/2024/04/29/uk_lays_password_legislation/

[12] https://www.theregister.com/2024/03/26/fbi_cisa_sql_injection/

[13] https://www.theregister.com/2023/12/07/memory_correction_five_eyes/

[14] https://whitepapers.theregister.com/



I like the idea of using a "ransom identifier" when storing files

elDog

Makes it much easier for the crooks to mark what belongs to them.

Apparently CISA has a sense of humor:

"Instead of relying on user input when naming files, developers should consider using a ransom identifier for each file and storing the associated metadata separately"

Re: I like the idea of using a "ransom identifier" when storing files

Homo-Sapien Floridanus

I think that was a Freudian slip

If you could just...

Zibob

Change the basis of 20+ years of OS and file system functionality that would be great.

I'm sure its an easy fix, especially for the software that's been out there running the systems that run everything forever. Just push an update for win3.11 I guess*.

*only potentially hyperbole, the reality could be worse.

Re: If you could just...

Dan 55

Change the basis of 20+ years of OS and file system functionality that would be great.

It's not that difficult, [1]it's just some .Net nonsense . CISA should be saying "no more" to .Net.

[1] https://www.huntress.com/blog/a-catastrophe-for-control-understanding-the-screenconnect-authentication-bypass

Re: If you could just...

Zibob

Perfect, let them know the can hire you personally to fix all the systems then.

Easy.

And a great money spinner for you.

That this hasn't happened means its not that easy.

Re: If you could just...

Paul Crawford

Just get Mrs Bobby Tables to give you some lessons in input sanitisation...

From the book of the blindly obvious (I welcome the down votes)

t245t

“ Eliminating directory traversal bugs is just one step towards achieving a truly secure-by-design approach to software. ”

Until these geniuses can design a truly secure [1]Memory Management Unit such fixes are only so much sticking plaster.

[1] https://medium.com/@tejas.pathak/memory-management-unit-intricacies-86d1cfc12802

Homo-Sapien Floridanus

Dr. Evil: Our evil scientists are building a giant quantum supercomputer to brute force attack and gain access to the infrastructure. After millions in development it be ready and then in a few years we will crack the systems and take over the world [pinky to mouth]. Hmmmm?

Scott: Why don’t we use a quick and easy directory traversal attack?

Dr. Evil: Please excuse my son Scott, he’s obviously inexperienced in these matters.

In this world there are only two tragedies. One is not getting what one
wants, and the other is getting it.
-- Oscar Wilde