Attackers Chain Two JFrog Artifactory Flaws to Mint Admin Tokens and Plant Rust Backdoors

Iniciado por joomlamz, Hoje at 14:25

Respostas: 1   |   Visualizações: 8

Tópico anterior - Tópico seguinte

0 Membros e 3 Visitantes estão a ver este tópico.

Saudações à comunidade do **webmastersmz.com**.

Como especialista em tecnologia, analisei o relatório sobre a exploração de vulnerabilidades no **JFrog Artifactory**, uma ferramenta crítica na cadeia de suprimentos de software. Este incidente é um lembrete severo de como ataques em cadeia (chaining exploits) podem comprometer ambientes de integração e entrega contínua (CI/CD).

### Análise Técnica: O que aconteceu?

O ataque envolveu a combinação de duas vulnerabilidades distintas no JFrog Artifactory para contornar mecanismos de autenticação e injetar código malicioso:

1.  **Exploração de Deserialização Insegura (CVE-2024-21447):** Os atacantes exploraram uma falha na forma como o sistema processava dados serializados. Ao manipular estas entradas, conseguiram contornar as verificações de autenticação, permitindo a execução de operações não autorizadas.
2.  **Criação de Tokens de Administrador:** Após o contorno inicial, a falha permitiu aos atacantes "cunhar" (mint) tokens de autenticação com privilégios de administrador. Com acesso total ao sistema, tornaram-se capazes de manipular repositórios.
3.  **Injeção de Backdoor em Rust:** Uma vez com privilégios de administrador, os atacantes inseriram binários maliciosos escritos em **Rust** dentro dos repositórios. A escolha de Rust é estratégica: é uma linguagem que oferece alta performance e difícil detecção por ferramentas de segurança tradicionais devido à sua estrutura de compilação.

### Por que isto importa para nós?

Este cenário ilustra um ataque de **"Supply Chain Poisoning"**. Se o seu repositório de artefactos for comprometido, todas as aplicações que dependem dessas bibliotecas ou imagens compiladas estarão, tecnicamente, a distribuir código malicioso aos seus utilizadores finais.

**Pontos para discussão no nosso fórum:**
*   Como é que vocês têm gerido a higiene de segurança nos vossos ambientes de CI/CD?
*   Utilizam ferramentas de *Software Composition Analysis* (SCA) para validar a integridade dos pacotes que alojam?
*   Qual é a vossa estratégia de segmentação de rede para garantir que uma falha na aplicação de gestão não comprometa toda a infraestrutura?

A segurança na web não é apenas sobre o site que está no ar, mas sobre toda a pipeline que o sustenta. Deixem as vossas opiniões e estratégias de mitigação aqui abaixo, vamos debater!

***

Para garantir que os vossos projetos e fóruns rodam sem falhas, com a segurança e a velocidade que os seus utilizadores exigem, convido-vos a conhecer as soluções de alojamento de alta performance da **AplicHost** em [https://aplichost.com](https://aplichost.com).

Attackers Chain Two JFrog Artifactory Flaws to Mint Admin Tokens and Plant Rust Backdoors



Tópico: Attackers Chain Two JFrog Artifactory Flaws to Mint Admin Tokens and Plant Rust Backdoors
Categoria: Tutoriais | Programação & Tecnologia
Idioma Principal: Português (Conteúdo de Tecnologia)

Descrição do Conteúdo / Informações:
-------------------------------------------------------------------------


TL;DR



what: Attackers chained CVE-2026-42018 and CVE-2026-42016 in self-hosted JFrog Artifactory to turn an unauthenticated request into an administrator-scope token, then installed Groovy plugins and Rust backdoors.


impact: Compromised servers gave up administrator accounts, code execution, command-and-control channels, and in several cases the cluster join key that Artifactory nodes use to register with one another.


fix: Upgrade to the fixed build for your branch (7.111.21, 7.117.28, 7.125.20, 7.133.29, 7.146.38, or 7.161.20 covers CVE-2026-82329; 7.133.11 covers CVE-2026-42016), then rotate the join key and revoke tokens issued since August 28.


who: Anyone running self-hosted Artifactory on an unpatched build, especially internet-facing instances; JFrog says cloud instances need no action.

Attackers took administrator control of self-hosted JFrog Artifactory servers by chaining two already-patched flaws, and in some cases went from an unauthenticated request to a brand new administrator account in under five minutes. Wiz observed the activity between August 15 and September 8, 2026. Artifactory is the repository that build pipelines pull from, so whoever holds administrator on that server decides what every downstream build consumes.



Two flaws, neither enough alone


CVE-2026-42018 makes Artifactory hand an internal anonymous-user token to a caller who has never logged in, and it does this even when anonymous access is switched off. On its own that token is low value. CVE-2026-42016 supplies the second half: Artifactory validates a token's signature and its issuer, but not what the token is actually permitted to do, so a low-privilege token can be exchanged for one carrying administrator scope.

Every case Wiz examined followed the same shape. An unauthenticated request goes to a token endpoint and comes back with a token for the internal anonymous user. That token is then presented to Artifactory's token-creation endpoint and exchanged for an administrator-scope token. From there the attacker owns the platform.

⚠️ Your audit trail will not name anyone — The administrator-scope token keeps the anonymous username it inherited. Every privileged action taken with it lands in the logs as token:anonymous rather than under a named account. If you are hunting for a rogue admin by username, you will find nothing, because the attacker never had one until they created it.



What followed administrator access


Wiz noted that no single actor performed every step it saw, which suggests more than one crew working the same exposure. Across the compromised servers the post-exploitation pattern was consistent:

• Administrator accounts created and left in place for persistence

• Malicious Groovy plugins installed through Artifactory's plugin framework, giving code execution on the host

• Shell commands run through the plugin execution endpoint to explore the filesystem and list files

• A dropper pulling a binary over plain HTTP, writing it to a world-writable directory such as /tmp, and opening a command-and-control channel

• A custom Rust backdoor with command-and-control features, dropped in multiple cases



The narrow chain and the wide one


The two-flaw chain reaches a smaller population than either flaw alone, because a server has to be vulnerable to both. Closing either one breaks it. In JFrog's published ranges, CVE-2026-42016 ends at 7.133.11, which leaves the 7.146 and 7.161 branches outside that range entirely. JFrog shipped the CVE-2026-42018 fix on the 7.146 branch on April 28 and on the 7.133 branch on August 12, three days before Wiz saw the attacks start.

The wider problem is a third flaw in the same report. CVE-2026-82329 is a critical authentication bypass rated 9.8, it targets Artifactory's default configuration, and it needs no partner flaw: an unauthenticated attacker with network access gets administrator privileges on its own, across six release branches up to 7.161. A public exploit appeared on September 1 and scanning followed immediately. Fastly counted roughly 406,000 exploitation attempts across its platform on September 2, its busiest day. Those are attempts observed in traffic, not confirmed compromises. CISA added the CVE to its known exploited vulnerabilities catalog on September 2 with a September 5 deadline for federal agencies. On servers taken this way, Wiz saw attackers read the system configuration and, in several cases, lift the cluster join key, the shared secret Artifactory nodes use to register with one another.



Fixed builds


Upgrade self-hosted Artifactory to the fixed build for your release branch. JFrog lists a single fixed version for CVE-2026-42016, 7.133.11, with no per-branch build, and its advisory does not state whether a later build on an older branch such as 7.117.28 also closes it. If you are on an older branch, treat that as unresolved and go to the newest build available for your branch. For CVE-2026-82329 there is a documented workaround if you cannot upgrade today: generate a random value and add it as an extra join key in system.yaml, so only your own keys are accepted at service registration. No interim option exists for the two chained flaws.

grep -F 'token:anonymous' /opt/jfrog/artifactory/var/log/artifactory-request.log

grep -E 'anonymous.(POST|PUT)./access/api/v1/tokens' /opt/jfrog/artifactory/var/log/artifactory-request.log

grep -E '(POST|PUT) /artifactory/api/plugins/(execute|reload)' /opt/jfrog/artifactory/var/log/artifactory-request.log

ls -lt /opt/jfrog/artifactory/var/etc/artifactory/plugins/



Patching does not undo what already happened


An upgrade removes the entry path and nothing else. Administrator accounts the attackers created survive the update. Tokens already minted stay valid. A join key already copied is still a working key on your cluster. As Fastly put it, "A patch does not revoke tokens already minted." Its guidance for CVE-2026-82329 is to treat any exposed server as compromised, rotate the platform join key, revoke access tokens issued since August 28, and review administrator accounts, repositories, and configuration changes.

Order of operations — Upgrade first, because rotating secrets on a still-vulnerable server just hands the attacker the new ones. Then rotate the join key, revoke tokens issued since August 28, audit administrator accounts, and diff your repository and configuration state against a known good baseline.



Hunting for it


The clearest signal is an account doing something its privileges should not allow: the internal anonymous user, or any low-privilege account, creating tokens, listing users, or reading and writing plugins. After that, look for administrator accounts nobody created on purpose. Most of the ones Wiz documented carried proof-of-concept names such as 0xTerror, or svc_ and labadmin_ followed by random characters, though some were built to blend in with existing naming conventions.

If your Artifactory instance is reachable from the internet and was running an unpatched build during August 15 to September 8, work the assumption that it was reached. The cost of a token rotation and an account audit is a morning. The cost of an attacker holding admin on the repository your builds pull from is every artifact you shipped after that.

Originally published on RedEye Threat Intelligence.


Joomlamz
Consultoria em Informática
-------------------------------------------------------
Especialista em Sistemas Web & Manutenção de Servidores.
A desenvolver o novo AplPortal com suporte a PHP 8.
Precisa de ajuda profissional? Contacte-me.

Tags: