News: 1643988153

  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)

Open-source Kubernetes tool Argo CD has a high-severity path traversal flaw: Patch now

(2022/02/04)


A zero-day vulnerability in open-source Kubernetes development tool Argo lets malicious people steal passwords from git-crypt and other sensitive information by simply uploading a crafted Helm chart.

Charts are the actual packaging format of ubiquitous tool-for-managing-Kubernetes applications Helm.

The vuln, tracked as CVE-2022-24438, exists in Argo CD, a widely used open-source continuous delivery tool for Kubernetes. Patched versions available from the project's maintainers are 2.19, 2.2.4 and 2.3.0.

[1]

"It is possible to craft special Helm chart packages containing value files that are actually symbolic links, pointing to arbitrary files outside the repository's root directory," said a member of the Argo project in a [2]security advisory about the flaw.

[3]

[4]

They said all versions of the tool were vulnerable, adding: "The impact can especially become critical in environments that make use of encrypted value files (e.g. using plugins with git-crypt or SOPS) containing sensitive or confidential data, and decrypt these secrets to disk before rendering the Helm chart."

Among other [5]larger software platforms using Argo CD (the "official" list tops 190 orgs) is Red Hat's [6]OpenShift project .

[7]

Cloud security firm Apiiro [8]discovered the vuln after asking itself whether it could find a way of making an Argo URI parser "accept a local file-path and confuse it to be a URI, and use that confusion to skip the whole cleanup and anti-path-traversal mechanism check."

The firm added: "Although Argo CD contributors were aware of this weak point in 2019 and implemented an anti-path-traversal mechanism, a bug in the control [sic] allows for exploitation of this vulnerability."

A timeline given by Apiiro said there were just four days between initial disclosure, patching and coordinated public disclosure, starting on 30 January.

[9]

Apiiro deduced that Argo CD's URI parser always treats URI-formatted strings as having been sanitised earlier in the application's workflow. Using a crafted Helm chart to pass it absolute file paths in URI format would therefore allow an attacker to sidestep Argo CD's file path traversal prevention mechanism.

"An attacker can assemble a concatenated, direct call to a specified values.yaml file, which is used by many applications as a vassal for secret and sensitive values," concluded Moshe Zioni, Apiiro's security research veep, in the company's blog post. He gave his findings a CVSS v3.0 score of 7.7, though so far no other sources appear to have reviewed or endorsed this.

Jamie Moles, a senior technical manager at network detection and response firm ExtraHop, opined: "One of the biggest issues here is that Kubernetes is essential for cloud-native companies. As with Log4j, whenever a ubiquitous piece of code is attacked it makes huge swathes of the internet vulnerable to attack."

[10]SolarWinds CEO describes overhauled Orion build system after that 'very small, unique' security breach

[11]IT for service providers biz Kaseya defers decision about SaaS restoration following supply chain attack

[12]Google says open source software should be more secure

[13]Sysadmins: Why not simply verify there's no backdoor in every program you install, and thus avoid any cyber-drama?

Supply chain attacks went big over the last year as criminals and nation states leapt on the idea of compromising widely used software suites. Explosively throwing it into the wider public consciousness was the [14]attack on SolarWinds by Russia , followed a few months later by [15]MSP software maker Kaseya . After those came [16]the Log4j horror show , spreading supply chain attacks to the open-source world. That prompted the US government to convene [17]a meeting at the White House , pondering how to better secure open-source-dependent software against such flaws.

While they come up with a solution, best update your installations to one of the fixed versions, as there is "no workaround for this issue." ®

Get our [18]Tech Resources



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

[2] https://github.com/argoproj/argo-cd/security/advisories/GHSA-63qx-x74g-jcr7

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

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

[5] https://github.com/argoproj/argo-cd/blob/master/USERS.md

[6] https://docs.openshift.com/container-platform/4.7/cicd/gitops/configuring-sso-for-argo-cd-on-openshift.html

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

[8] https://apiiro.com/blog/malicious-kubernetes-helm-charts-can-be-used-to-steal-sensitive-information-from-argo-cd-deployments/

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

[10] https://www.theregister.com/2021/05/11/solarwinds_ceo_orion_build_system/

[11] https://www.theregister.com/2021/07/05/kaseya_vsa_update/

[12] https://www.theregister.com/2022/01/14/google_says_open_source_software/

[13] https://www.theregister.com/2021/07/31/enisa_supply_chain_attack_report/

[14] https://www.theregister.com/2021/05/11/solarwinds_ceo_orion_build_system/

[15] https://www.theregister.com/2021/07/05/kaseya_vsa_update/

[16] https://www.theregister.com/2021/12/13/log4j_rce_latest/

[17] https://www.theregister.com/2022/01/14/google_says_open_source_software/

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



This telethon isn't just about helping disenfranchised geeks. We're
also here for the betterment of mankind through our research into finding
a Cure for Windows.

Each day, millions of man-hours are wasted due to design flaws in
Microsoft Windows. Each day, millions of dollars are sent by business and
individuals like yourself into a huge black hole known as "Microsoft" for
exorbitantly priced software products that should be free.

But don't worry. We've almost found a Cure for Windows. Geeks worldwide
have toiled endlessly for the past eight years working on a replacement
operating system called Linux. It's almost ready. Now we need to convince
the world to use our creation and eliminate the virus known as Windows.

-- Excerpt from Eric S. Raymond's speech during the Geek Grok '99
telethon held in Silicon Valley