Skip to content
RCE Write-up Intermediate

Three Hacking Flaws Attackers Execute Code

ServiceNow's AI Platform contains three CVSS 10.0 vulnerabilities, including unauthenticated remote code execution via GraphQL injection and a SQL injection flaw. An attacker could run arbitrary commands on the server, read database records, and pivot to connected systems such as Active Directory.

medium.com

Published on medium.com

if you are not a premium member then you can read this article for free here

Muhamed Fazal PS, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely improper input handling in ServiceNow's GraphQL API and database queries, allowing injected queries to execute code or read data.

Impact

An attacker could execute arbitrary code, access employee records and API integrations, and potentially compromise connected systems such as Active Directory; the text notes that patches are available but many organisations patch slowly.

What the attacker needed

Network access to the ServiceNow instance; unpatched ServiceNow instance

The fix

ServiceNow has released patches for the vulnerabilities, and organisations should apply them immediately or restrict network access if patching is not possible.

How it was found

  1. Search Shodan for internet-connected ServiceNow instances.
  2. Check the login page source for the version number to identify unpatched instances.
  3. Send a query to the GraphQL endpoint to list available functions without authentication.
  4. Use the SQL injection bug to retrieve user records, passwords, and API tokens.
  5. Use the code injection bug to run commands and install a backdoor.
  6. Use the privilege escalation bug to become admin, then read integration configs to pivot to Active Directory.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

ServiceNow is software that large companies use to manage their internal operations. A vulnerability is a mistake in the software that lets someone do things they should not be able to do. Here, an attacker could send a specially crafted request to a ServiceNow server and make it run their own commands, without needing a password.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.