KE +254 768 341 410 ZA +27 62 701 6801 AU +61 423 605 291 UE +48 690 567 860 sales@softwaredynamicsgroup.com
Esta página está traducida automáticamente. Prevalece la versión en inglés. English
Aviso al cliente · 26 de octubre de 2026 Aviso de seguridad

PHP2Shell y el portal que llama a Dynamics 365.

El componente vulnerable es PHP en un servidor que tú o tu socio operáis. Parche ahora. Elimina el secreto almacenado. Mueve el portal a una plataforma Microsoft mantenga.

← Todas las opiniones
Lee esto contra cada host PHP que llame a Dynamics 365

Finance and Operations, Dataverse y Business Central online son servicios Microsoftalojados. El fallo está en PHP en un servidor que tú o tu socio operáis. Un portal que los llama suele tener una credencial duradera.

01 · Patched21 de octubre de 2026

PHP 8.5.12, 8.4.27, 8.3.36 y 8.2.35. PHP 5.4 a 8.1 no tienen solución aguas arriba.

02 · GravedadDos fallos, cada uno CVSS v4.0 9.2

Ejecución remota de código no autenticado en una configuración predeterminada.

03 · AlcanceEl portal, la tienda online, el guion

El host que llama a Dynamics 365. El producto Microsoft hospeda es un sistema separado.

¿Qué pasó?

Dos fallos en PHP.

Ambos fueron parcheados después de que se filtraran los detalles y después de que la explotación ya hubiera comenzado. El recuento que aparece a continuación es de PHP en internet. No es un recuento de Dynamics 365 clientes.

  1. 17 de octubreLos honeypots de Amazon registran un intento de explotación, cuatro días antes de la divulgación.
  2. 20 de octubreFiltración de detalles. PHP anuncia una publicación de emergencia.
  3. 21 de octubrePHP 8.5.12, 8.4.27, 8.3.36 y 8.2.35 se envían a la nave. Afectados: PHP 5.4 a 8.5.11.
  4. 22 de octubreCloudflare informa que los intentos han aumentado de decenas de miles a millones.
  5. 23 de octubrePHP detecta un tercer problema, CVE-2026-115560. Necesita una configuración inusual.
  6. 25 de octubrePalo Alto Unit 42 cuenta más de 22,6 millones de instancias PHP potencialmente expuestas.
CVE-2026-109618Corrupción de memoria

Activado por manejo fuera de memoria. Ejecución de código en configuración predeterminada.

CVE-2026-109619Reutilización estatal rancio

Un trabajador PHP puede reutilizar el estado obsoleto de una solicitud liberada. Ejecución de código en una configuración predeterminada.

Ambos son CVSS v4.0 9.2, tal como describen Datadog, Unidad 42 y Google Cloud. Fuentes para la cronología y el número de instancias: el proyecto PHP, Amazon, Cloudflare, Datadog, Google Cloud y Palo Alto Unit 42. Software Dynamics no ha contado esos hosts de forma independiente.

¿Está Dynamics 365 expuesto?

El fallo está en PHP en un servidor que tú o tu socio operáis. Ese servidor es el portal del cliente, proveedor o socio, la tienda web o sitio de reservas, o el script middleware que Dynamics 365 llama a través de OData, un servicio personalizado o la API web de Dataverse. Si ese host ejecuta una versión PHP por debajo de las versiones fijas, cualquiera en internet puede intentar ejecutar código en él.

Radio de explosión

El daño equivale a la identidad.

La ejecución de código en el portal permite que un atacante actúe como portal. Esta tabla es un análisis de diseños típicos de integración. No es un registro de un incidente publicado. Ajústalo a la arquitectura que realmente ejecutas.

Qué hay en el host PHPLo que gana un atacante
Registro de la app Entra ID, cliente secreto o certificadoSolicitudes de token como principal de servicio, desde cualquier lugar, hasta que el secreto se rote.
Tokens de acceso OAuth almacenados en cachéAcceso Dynamics 365 de corta duración, normalmente de una hora, sin el secreto.
.env, config.php o web.configCredenciales de base de datos, credenciales SMTP y claves de pasarela de pago.
La base de datos del portalRegistros de clientes y proveedores, historial de pedidos y hashes de contraseñas.
Un puesto en la redUna ruta confiable hacia Dynamics 365, hacia bases de datos integradas o hacia una pasarela local.

El peor escenario es un rol amplio. Una identidad integrada con Administrador de Sistema en Dataverse, o un rol de seguridad amplio en Finance and Operations, convierte una solicitud al portal en acceso de lectura y escritura para clientes, proveedores, precios y pedidos abiertos. Lee la tabla con tres hechos: la identidad (la aplicación Entra y el usuario al que se corresponde), el rol (las tablas, entidades y acciones que puede tocar) y el secreto (el archivo, bóveda o certificado que contiene la credencial esta noche).

Primeras 72 horas

Parcear, cazar, rotar.

Trata un portal que estaba en internet y no parcheado el 17 de octubre como expuesto hasta que los registros digan lo contrario.

  1. 1
    Parchear el tiempo de ejecuciónPasar a PHP 8.5.12, 8.4.27, 8.3.36 o 8.2.35. En Linux, confirma que el paquete de distribución lleva la corrección. Un backport puede conservar el número de versión anterior. De PHP 5.4 a 8.1 no tienen solución ascendente: actualiza esos hosts o quítalos de internet.
  2. 2
    Lee los registrosRevisa los registros web y de procesos para trabajadores PHP que generan shells o procesos hijos, y para nombres de archivo inusualmente largos en cuerpos POST.
  3. 3
    Rotar la credencialRota el secreto o certificado del cliente Entra ID que usa el portal, luego las claves de base de datos y de pasarela. Revoca las sesiones donde puedas.
  4. 4
    Caza en el inquilinoRevisa los inicios de sesión del principal del servicio para nuevas direcciones IP o horarios impares. Revisa Dynamics 365 audita los registros para lecturas, exportaciones o escrituras masivas por parte del usuario de integración.
  5. 5
    Reducir la identidadDa a la integración su propio principio de servicio y un rol de seguridad mínimo. Restringe la integración por Acceso Condicional o IP cuando la licencia lo permita. Prefiero un certificado en Key Vault antes que un secreto en un archivo de configuración.
  6. 6
    Estrechar el caminoAñadir reglas de firewall de aplicaciones web para las firmas publicadas. Limitar el tráfico saliente desde el host PHP. Desactivar el progreso de subida de la sesión, lo que mitiga CVE-2026-115560.

Who owns which action. The infrastructure owner patches the host and confirms the package. The identity owner rotates the Entra credential. The Dynamics 365 administrator reads the audit log and cuts the security role. Name one person for each, today.

The credential

A stolen file should be useless.

Key Vault alone does not stop code running inside the portal from using what the portal can use. Pair the vault with a small role, and with a front door that exposes only the operations the portal needs.

PatternWhat it stopsWhat remains
Secret in a config file. The client secret sits in .env or config.php. Common today.Nothing.Full theft, and reuse from anywhere.
Secret in Azure Key Vault, read at runtime with a managed identity. Access by Azure RBAC, rotation on a schedule.Secrets leaking through file reads and backups. Rotation becomes routine.A compromised portal can still read the secret while it runs.
Certificate, private key held in Key Vault. The portal asks Key Vault to sign the client assertion. The key is not exported.Exfiltrating a credential that can be reused later.The attacker can sign requests only while the portal is compromised.
Managed identity with a federated credential. The app registration trusts the host. No secret exists.Credential theft, on an Azure-hosted portal.The attacker can still request tokens from the compromised host.
Dataverse

An application user with a custom security role, limited to the tables the portal needs. Never System Administrator.

Finance and Operations

Register the Entra application and map it to a service user. The role covers only the required data entities and actions.

Entra ID

Conditional Access for the workload identity, where licensing allows it. Alert on sign-ins from a new location.

A front door

Azure API Management, or an Azure Functions facade, between the portal and Dynamics 365. Only the operations the portal needs, with rate limits and logging.

Do these in this order. Rotate the secret that sits in a file. Then cut the role. Then put a front door in front of Dynamics 365. A vault, without the smaller role and the front door, still leaves a portal that can ask for a token.

The portal estate

Every host that touches Dynamics 365.

Capture eight facts for each portal and each script, then put the host in one tier: the PHP version and framework, the hosting location, who owns it and patches it, which Dynamics 365 identity it uses, the roles on that identity, where the secret lives, which data it reads or writes, and when it was last patched or tested.

TierProfileAction window
Tier 1On the internet. Writes to Dynamics 365, or uses a broad role. Secret in a config file.Patch and rotate now. A front door and a smaller role within 30 days.
Tier 2On the internet. Read-only, or a narrow role.Patch now. Move the secret to Key Vault within 60 days.
Tier 3Internal only, or it touches little data.Patch in the normal cycle. Fold it into the migration backlog.
Tier 4Nobody owns it, it is unpatched, or nobody can say what it is for.Isolate or retire. Do not carry it forward.

How to weight a host. Give extra weight to a PHP version with no upstream fix, and to a portal that handles payment, pricing or customer master data. A public vendor portal on PHP 8.1, with a client secret in config.php and a System Administrator application user, is Tier 1. An internal read-only price list on a fixed PHP 8.3 build is Tier 3. Retiring a portal that nobody can justify is the cheapest reduction available.

Where the portal goes

Most PHP portals repeat Power Platform.

Every line of PHP is code you must patch yourself. Match each portal to the lowest-maintenance option that meets the need.

OptionBest forTrade-off
Power PagesExternal customers, partners and vendors. Forms, lists, order or case status, document upload.No server-side PHP. Custom logic moves to Dataverse plug-ins, Power Automate or Azure Functions. Data must be in Dataverse, so Finance and Operations data needs virtual tables, dual-write or an integration. Licensing is capacity-based: check it before you commit.
Model-driven appsInternal staff, and licensed partner users, working with Dynamics 365 records.The full Dynamics 365 security model, and the audit log. Not for anonymous users, and not for high-volume external users.
Azure Functions or Logic Apps, behind API ManagementHeadless business-to-business integrations, and bespoke logic the portal must keep.You own the code, on a Microsoft-managed runtime, with a managed identity, patched by the platform. It needs an API design and monitoring.
Harden, and keep PHPA complex application that cannot move yet.You keep the patching burden. Use it only with a front door, Key Vault, a firewall and a written patch commitment. A bridge, not a destination.

A practical rule. If a portal mostly shows and edits records, move it to Power Pages or a model-driven app. If it contains real business logic or integrations, extract that logic into a governed API layer first, then retire the PHP front end. If it cannot move this quarter, harden it, name the owner, and write the date it will be retired.

The roadmap

Shrink what holds a trusted identity.

PHP2Shell will not be the last critical flaw in a runtime you operate. The durable fix is less custom, internet-facing code holding a Dynamics 365 identity, and an identity that is cheap to rotate and hard to misuse.

  1. Days 0 to 3 · ContainPatch, hunt, rotate, and disable session upload progress.
  2. Days 3 to 30 · StabiliseFinish the inventory. Move secrets into Key Vault. Cut integration roles to the minimum. Turn on Entra sign-in alerts and Dynamics 365 audit alerts.
  3. Days 30 to 90 · RedesignPut API Management or Azure Functions in front of Dynamics 365. Retire every Tier 4 portal. Pilot the highest-risk external portal on Power Pages.
  4. Days 90 to 180 · MigrateMove the remaining portals, by tier, to Power Pages, a model-driven app, or the API layer. Any PHP that remains sits on a written patch commitment.

Preguntas frecuentes

Is Dynamics 365 itself vulnerable to PHP2Shell?

No. Finance and Operations, Dataverse and Business Central online are Microsoft-hosted services. The flaws are in PHP on a server you or your partner operate, such as a customer, vendor or partner portal, a web shop, or a script that calls Dynamics 365.

Which PHP versions fix the PHP2Shell flaws?

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, released on 21 October 2026. PHP 5.4 to 8.1 have no upstream fix and should be upgraded or taken off the internet. On Linux, confirm the distribution package carries the fix, because a backport can keep the old version number.

What should we do first?

Patch the PHP host, then rotate the Entra ID client secret or certificate that the portal uses, then the database and gateway keys. After that, cut the integration identity to a minimal security role and review service principal sign-ins and Dynamics 365 audit logs.

Where should a PHP portal for Dynamics 365 move to?

A portal that mostly shows and edits records fits Power Pages or a model-driven app. A portal with real business logic needs that logic extracted into a governed API layer, such as Azure API Management or Azure Functions, before the PHP front end is retired. PHP that stays is a bridge with a written patch commitment.

Send the inventory, and we will mark the tier. Name the owner of each host and send the list to the office that holds your agreement. We will mark the tier. We will not invent a portal you do not run. Contáctanos Download the PDF advisory →
Hablemos de Soluciones.

Planifica tu hoja de ruta ERP CRM con nuestros expertos.

Reserva una consulta Estima tu retorno
Llamada Reserva una consulta
Software Dynamics
Normalmente responde dentro del horario laboral (EAT)
Hola. ¿Qué intentas resolver? Elige uno y te dirigiremos a la persona adecuada. Quiero ver una demo Soy un cliente existente y necesito apoyo Háblame de la facturación electrónica