GET into the mainframe

Annie Nie (Threat Intel Analyst)

BSides Canberra VIII (2025) · Day 1 · Main Track

Overview

In her BSides Canberra talk, "GET into the mainframe," Annie Nie delivers a captivating account of uncovering a critical unauthenticated remote code execution (RCE) vulnerability within the HPE NonStop mainframe ecosystem. Drawing from her experience as a former pentester, Nie details a seven-day engagement focused on an assumed breach scenario, where an attacker has network access but no initial credentials. The talk highlights the often-overlooked security posture of mainframes, which, despite being the backbone of global financial, healthcare, and telecommunications industries, rarely receive the same scrutiny as more modern systems.

Watch on YouTube

Visual summary for GET into the mainframe by Annie Nie
Visual summary for GET into the mainframe by Annie Nie

Key moments

  1. 2:00 Introduction to mainframes and HPE NonStop systems
  2. 4:30 Finding WVP Enterprise and its function
  3. 9:55 Unauthenticated GET request bypass discovery
  4. 11:00 Unauthenticated RCE via "Obey" feature introduction
  5. 13:00 Overcoming the "Obey" file code execution challenge
  6. 14:45 Code execution as root by default
  7. 16:00 Encouraging security research on mainframes

GET into the mainframe

Speakers: Annie Nie, Threat Intel Analyst

Conference: BSides Canberra

YouTube: https://www.youtube.com/watch?v=wWdXSV41lxM

Overview

In her BSides Canberra talk, "GET into the mainframe," Annie Nie delivers a captivating account of uncovering a critical unauthenticated remote code execution (RCE) vulnerability within the HPE NonStop mainframe ecosystem. Drawing from her experience as a former pentester, Nie details a seven-day engagement focused on an assumed breach scenario, where an attacker has network access but no initial credentials. The talk highlights the often-overlooked security posture of mainframes, which, despite being the backbone of global financial, healthcare, and telecommunications industries, rarely receive the same scrutiny as more modern systems.

Nie's presentation is a rare and valuable deep dive into mainframe security, a domain where technical vulnerability disclosures are scarce. She meticulously walks through her methodology, from initial port scanning to the intricate discovery of an authorization bypass in the Web ViewPoint Enterprise application, culminating in the exploitation of a built-in "obey" command feature. This talk serves as a powerful reminder that fundamental security flaws can exist in even the most critical and seemingly impenetrable systems, underscoring the importance of continuous, specialized security assessments for mainframe environments.

The significance of this discovery cannot be overstated. A successful unauthenticated RCE on a system like the HPE NonStop, which boasts "five nines" (99.999%) availability and handles millions of transactions per second, could have catastrophic implications. Nie's work not only exposed a severe vulnerability but also demystified a complex system, encouraging more security professionals to "get into the mainframe" and contribute to the security of these vital, ubiquitous machines.

Background

▶ Watch: Introduction to mainframes and HPE NonStop systems (2:00)

The journey into the mainframe began during Annie Nie's time as a pentester, where she encountered a unique opportunity to test mainframe systems. This experience led her to investigate an unspecified CVE, whose cryptic summary would eventually make sense through her discoveries. The scope of her engagement was a seven-day unauthenticated infrastructure test, simulating an assumed breach where an attacker has internal network access but no credentials to the target infrastructure. This short timeframe proved surprisingly effective for gaining significant insights into mainframe security.

Nie first established what a mainframe is: essentially, a highly robust computer designed for rapid execution of numerous small tasks, processing millions of instructions per second with extreme reliability. While IBM mainframes are widely known, this talk specifically focuses on the HPE (Tandem) NonStop series. The NonStop system is engineered for high availability and fault tolerance, aiming for 99.999% uptime, which translates to a maximum of approximately five minutes of downtime per year. This unparalleled reliability makes NonStop mainframes indispensable for critical applications such as point-of-sale systems, debit and credit card transactions, ATMs, electronic funds transfers, securities trading, and non-financial services like manufacturing, healthcare, emergency services, and telecommunications.

A quick primer on the NonStop operating environment reveals its unique characteristics. It runs on its proprietary Guardian OS, which includes a Unix-like subsystem called OSS (Open System Services), akin to WSL on Windows. Usernames are structured as group.username, with super.super being the equivalent of the root user. The file system employs a flat structure: volume.subvol.dis_file, where volume is like a drive, subvol is a folder, and dis_file is the file name. Command-line operations are often performed using TACL (Tandem Advanced Command Language), a scripting language similar to Bash within Guardian.

The initial phase of the unauthenticated infrastructure test involved a standard port scan. This revealed a peculiar web application named WVP Enterprise, which upon further investigation, was identified as Web ViewPoint Enterprise. This application is designed to provide system administrators with a browser-based interface to manage NonStop systems, facilitating tasks like usage monitoring, server management, and alert automation.

The history of Web ViewPoint Enterprise is intertwined with the NonStop system's evolution. Initially developed by Tandem (the original creator of NonStop), it was based on an older block mode application called Viewpoint from the 1970s. As user demand for features grew, Tandem, which never officially supported Web ViewPoint, saw its development taken over by a company called Idellgi. After numerous iterations and architectural changes, it is now an officially supported HPE product, reportedly in use at "nearly every major non-stop server around the world," according to its business case document. This widespread adoption made it a prime target for security scrutiny.

Key Findings

▶ Watch: Unauthenticated GET request bypass discovery (9:55)

The central discovery of Annie Nie's research was an unauthenticated remote code execution (RCE) vulnerability affecting the HPE NonStop Web ViewPoint Enterprise application. This critical flaw allowed an attacker with network access to the mainframe to execute arbitrary commands with the highest privileges (super.super) without providing any authentication credentials.

The path to this finding involved a meticulous process of observing application behavior and challenging assumptions:

  1. Authorization Bypass via GET Requests: Nie initially noted that most authenticated actions within Web ViewPoint Enterprise were POST requests sent to the /homepage endpoint, requiring a valid session token. However, her logs revealed intermittent GET requests to the same /homepage endpoint, originating from the application itself, which crucially, contained no session tokens or cookies. This observation sparked the hypothesis that the backend might be processing GET requests to this endpoint without authorization checks.
  2. Unauthenticated Command Execution: By transforming a standard authenticated POST request (e.g., to list users) into a GET request and then removing the session token entirely, Nie successfully received a valid response. This confirmed that the application was indeed vulnerable to unauthenticated command execution for at least some functionalities.
  3. Exploiting the "Obey" Feature: Further investigation into Web ViewPoint Enterprise's features revealed file management capabilities, including the ability to view, read, write, and critically, obey files. The obey command is a built-in function in TACL that executes a file containing TACL commands, effectively providing a direct path to code execution.
  4. File Code Discrepancy: A significant technical hurdle emerged when initial attempts to write a TACL command file using the OSS subsystem (which was the first file write functionality Nie found) failed to execute correctly via the obey command. The obey command only returned the first word of the command, not its output. Through careful analysis and consulting documentation, it was discovered that OSS creates files with file code 180, whereas Guardian OS creates files with file code 101. The obey command only recognizes files with file code 101.
  5. Achieving RCE: Once the file code discrepancy was understood and corrected—by using Guardian OS write functionality to create the TACL command file—Nie successfully wrote a file containing arbitrary commands (who, cis_info) and then executed it unauthenticated via the obey command. This demonstrated full remote code execution.
  6. Default Privileges: The executed commands ran under the context of the Web ViewPoint Enterprise process owner, which by default during installation is the highly privileged super.super user (equivalent to root). This meant that the unauthenticated RCE granted an attacker complete control over the mainframe system.

While the exact root cause of the authorization bypass for GET requests remained somewhat unclear to Nie, the practical demonstration of unauthenticated RCE was definitive. Although HPE has since released patches, the initial patch reportedly had persistent issues, highlighting the complexity of securing legacy codebases. The discovery underscores that mainframes, despite their robust reputation, are not immune to fundamental web application vulnerabilities, especially when integrated with modern web interfaces.

Technical Deep Dive

▶ Watch: Unauthenticated RCE via "Obey" feature introduction (11:00)

The technical core of this vulnerability hinges on a critical authorization bypass combined with a powerful, often overlooked, system feature. Annie Nie's methodical approach uncovered that the Web ViewPoint Enterprise application, despite typically requiring a session token for actions, inadvertently exposed a pathway for unauthenticated command execution.

The initial observation was that all authenticated interactions with Web ViewPoint Enterprise were POST requests directed to the /homepage endpoint. These requests followed a specific format: command={action}&parameter={value}&session_token={token}. For instance, command=GET USERS would retrieve a list of system users. Nie's logs, however, revealed periodic GET requests to the same /homepage endpoint that were entirely devoid of any authentication mechanisms—no session tokens, no cookies. These "ping" requests, presumably for health checks or status updates, proved to be the Achilles' heel.

Nie hypothesized that if the backend was designed to process these unauthenticated GET requests, it might also process other commands if delivered via GET. She first tested this by converting an authenticated POST request to a GET request while still including a valid session token. This worked, returning the expected 200 HTTP response, confirming that the backend was capable of parsing and executing commands sent via GET. The pivotal moment came when she removed the session token from this GET request. Remarkably, the command still executed successfully, demonstrating a clear authorization bypass. The application's backend was effectively treating certain GET requests to /homepage as implicitly authorized, regardless of whether a session token was present.

With the ability to execute commands unauthenticated, the next step was to elevate this to full remote code execution. Nie explored the application's features and identified file management functionality. This included the ability to view, read, write, and crucially, obey files. The obey command is a fundamental feature of the TACL (Tandem Advanced Command Language) environment on HPE NonStop systems. It allows a user to execute a file containing TACL commands, essentially providing a direct mechanism for script execution.

The exploitation path seemed straightforward: write a file containing arbitrary TACL commands, then use the application's unauthenticated command execution capability to obey that file. Nie's initial attempt involved using the OSS (Open System Services) subsystem to write a simple command file. For example:

This created a file named mycmds in the /G/temp.A directory containing the who (similar to whoami) and cis_info commands. However, when she then attempted to obey this file, the output was not the expected results of the commands but merely "who"—the first word of the first command. This indicated that while the file was being read, its contents were not being interpreted as executable TACL commands.

This led to a significant debugging challenge, involving numerous attempts with different command separators (ampersands, semicolons, tildes, pipes) and even removing comments, all to no avail. The breakthrough came from a deeper understanding of the NonStop file system and its unique characteristics. Nie eventually discovered that OSS creates files with a file code of 180, whereas the native Guardian OS creates files with a file code of 101. Critically, the obey command on the NonStop system only recognizes and executes files with file code 101. This subtle yet crucial difference in file metadata, related to how bytes are physically stored and interpreted, was the reason for the execution failure.

The solution was to ensure the command file was created using Guardian OS write functionality, thus assigning it the correct file code 101. Once this was done, writing the same TACL commands into a file and then using the unauthenticated GET request to obey it successfully executed both the who and cis_info commands, returning their full outputs. This confirmed unauthenticated remote code execution.

The final piece of the puzzle was understanding the privilege level of the executed commands. Nie confirmed that the commands ran with the privileges of the user account managing the Web ViewPoint Enterprise process. By default, during installation, this process is typically owned by super.super, the equivalent of the root user on a Unix-like system. While it's technically possible to configure the application to run under a less privileged user, it still often requires significant permissions for its core functionality. This default configuration meant that an attacker exploiting this vulnerability would gain complete administrative control over the NonStop mainframe.

The precise root cause of the GET request authorization bypass remains somewhat speculative, even for Nie. It's theorized that an older, unpatched version of the application might have lacked proper authorization checks for GET requests to /homepage, perhaps expecting them to be internal or benign. While HPE has released patches, the initial fixes were reported to be incomplete, suggesting a complex and potentially messy codebase. This highlights the challenges of securing legacy systems where security layers may have been retrofitted or inconsistently applied over many years of development.

Demo / Proof of Concept

▶ Watch: Code execution as root by default (14:45)

Annie Nie's talk itself served as a detailed walkthrough and proof of concept for the unauthenticated remote code execution vulnerability on HPE NonStop mainframes via the Web ViewPoint Enterprise application. She meticulously demonstrated each step of her discovery and exploitation process, providing clear examples of the requests and observed behaviors.

The demonstration began by outlining the initial setup: an unauthenticated infrastructure test against a mainframe running Web ViewPoint Enterprise. After identifying the /homepage endpoint as the central point of interaction for both authenticated POST requests and suspicious unauthenticated GET requests, Nie showed how she first validated the authorization bypass. She took an authenticated POST request, such as one designed to retrieve a list of users (command=GET USERS), and converted it into a GET request. Even with the session token present, this GET request successfully returned the expected 200 HTTP response and user data, indicating the backend's ability to process GET commands.

The critical next step in the demonstration involved removing the session token entirely from this GET request. Nie explicitly showed that even without any authentication, the command (command=GET USERS) still executed successfully, proving the existence of the unauthenticated command execution vulnerability. This established the foundational bypass.

The core of the RCE demonstration then focused on the obey functionality. Nie explained that Web ViewPoint Enterprise offered file management features, including the ability to write and execute files containing TACL commands. Her first attempt at achieving RCE involved writing a simple TACL script, containing the who and cis_info commands, using the OSS (Open System Services) subsystem. She illustrated the commands used to create this file (e.g., oss -c 'who' > /G/temp.A/mycmds) and then the subsequent obey command. The crucial part of the demo was showing the failure of this attempt: when obey was executed on the OSS-created file, it only returned "who", not the actual output of the commands.

Nie then detailed her troubleshooting process, including trying various command separators and syntax adjustments, all of which failed. This led to the discovery of the file code discrepancy. She explained that OSS creates files with file code 180, while the obey command specifically requires files with file code 101, which are created by the native Guardian OS.

The successful portion of the proof of concept then demonstrated the corrected approach. Nie explained that by using Guardian OS's native file writing capabilities (implicitly through the Web ViewPoint Enterprise's file write functionality, which would create files with the correct file code 101), she could create the same TACL command file. When this correctly formatted file was then obeyed via an unauthenticated GET request, the demonstration showed the full, expected output of both the who and cis_info commands. This unequivocally proved the unauthenticated remote code execution capability, running as the highly privileged super.super user by default.

The demonstration effectively broke down a complex vulnerability into understandable, actionable steps, highlighting both the initial bypass and the subsequent technical hurdle that needed to be overcome to achieve full RCE.

Defensive Implications

▶ Watch: Encouraging security research on mainframes (16:00)

The discovery of an unauthenticated RCE on a critical system like the HPE NonStop mainframe carries significant defensive implications for organizations relying on this technology. Defenders must take immediate and comprehensive action to mitigate similar risks.

  1. Prioritize Patching: The foremost defensive measure is to ensure that HPE NonStop Web ViewPoint Enterprise is fully patched to the latest version. While Annie Nie noted that the initial patch for this vulnerability had some lingering issues, it is presumed that subsequent updates have fully addressed the flaw. Organizations should establish robust patch management processes specifically for their mainframe applications, which are often overlooked compared to modern systems.
  2. Implement Principle of Least Privilege: A critical finding was that the Web ViewPoint Enterprise process, by default, runs as the highly privileged super.super user. This significantly amplifies the impact of any vulnerability. Defenders must reconfigure the application to run under the lowest possible privilege level required for its functionality. This involves creating a dedicated, restricted user account for the application and meticulously auditing its permissions to ensure it only has access to necessary resources.
  3. Strict Network Segmentation: Mainframes, even if not directly exposed to the public internet, are frequently accessible from the broader corporate network without adequate segmentation or jumpboxes. This talk underscores the danger of such configurations. Organizations must implement strict network segmentation to isolate mainframes and their management interfaces (like Web ViewPoint Enterprise) from less trusted internal networks. Access should be restricted to only specific administrative hosts, preferably through secure jumpboxes with multi-factor authentication.
  4. Enhanced Monitoring and Alerting: Defenders should implement enhanced logging and monitoring for Web ViewPoint Enterprise and other mainframe management applications. Specifically, look for:
  • Unusual GET requests to sensitive endpoints (e.g., /homepage) that lack authentication headers or session tokens.
  • Any execution of the obey command, especially if initiated by the Web ViewPoint Enterprise process or from unexpected sources.
  • Unauthorized file writes or modifications, particularly those involving changes to file codes or permissions.
  • Abnormal process spawning or execution from the Web ViewPoint Enterprise user.
  1. Regular Security Audits and Penetration Testing: Given the specialized nature of mainframes, dedicated security audits and penetration tests are essential. These assessments should go beyond standard web application testing to include:
  • Reviewing mainframe configurations, default user permissions, and process owners.
  • Verifying file codes and their implications for command execution.
  • Challenging assumptions about the security of "built-in" features like obey.
  • Evaluating the security posture of all web-based management interfaces.
  1. Mainframe Security Awareness and Training: Security teams, especially those focused on traditional IT infrastructure, often lack expertise in mainframe security. Organizations need to invest in training and awareness programs to ensure that their security personnel understand mainframe architectures, common vulnerabilities, and specific defensive strategies.
  2. Secure Mainframe Modernization Efforts: As mainframes are increasingly integrated with cloud environments or modernized through new interfaces, new attack surfaces emerge. Defenders must ensure that security is embedded from the design phase in all modernization projects, carefully evaluating the security implications of exposing mainframe services to new platforms or protocols. Nie's call to "yell at the cloud hard enough" serves as a reminder that cloud deployments of mainframes could introduce unforeseen vulnerabilities if not secured meticulously.

By implementing these defensive measures, organizations can significantly reduce their exposure to similar critical vulnerabilities and bolster the security posture of their indispensable mainframe infrastructure.

Key Takeaways

  • Mainframes are critical infrastructure, often overlooked: Despite powering global finance, healthcare, and other essential services, mainframes frequently receive less security scrutiny than modern IT systems, making them ripe targets for exploitation.
  • Fundamental authorization bypasses can exist in complex systems: The vulnerability stemmed from Web ViewPoint Enterprise processing unauthenticated GET requests to a critical endpoint, demonstrating that even sophisticated systems can harbor basic web application flaws.
  • System-specific features can be powerful exploitation primitives: The obey command on HPE NonStop mainframes, designed for script execution, became a direct path to remote code execution when combined with the authorization bypass.
  • Deep technical understanding is crucial for exploitation and defense: Overcoming the "file code 180 vs. 101" hurdle highlights that detailed knowledge of a system's unique architecture and quirks is essential for both successful penetration testing and robust defense.
  • Default configurations often lead to excessive privileges: The vulnerability's impact was amplified because the Web ViewPoint Enterprise process ran as super.super (root equivalent) by default, emphasizing the importance of the principle of least privilege.
  • Mainframe security requires dedicated attention: Organizations must prioritize patching, network segmentation, monitoring, and specialized security audits for their mainframe environments, recognizing their unique attack surface and critical importance.

About the Speaker(s)

Annie Nie is a Threat Intel Analyst with a diverse background in cybersecurity. Prior to her current role, she worked as a pentester, an experience that provided her with the unique opportunity to conduct security assessments on mainframe systems. Nie describes herself as someone who "reverse engineers a bit of everything" and admits to having "a bit of a soft spot for mainframes." Her expertise spans both offensive security techniques and the analytical skills required for threat intelligence, making her well-suited to uncover and articulate complex vulnerabilities in critical infrastructure.

Reviews

  • Heather Calloway (CISO) — MUST SEE ★★★★★

→ Top-rated talks at BSides Canberra VIII (2025)

All talks from BSides Canberra VIII (2025)