# CVE-2026-111559: Batflat (sruupl) template injection in /contact endpoint allows unauthenticated remote PHP code execution

> CERT Polska reports that Batflat 1.2.0 through 1.3.6 does not sanitize data sent to the /contact endpoint (CWE-1336, template engine injection). A remote unauthenticated attacker can send a crafted POST request to execute arbitrary PHP code with www-data privileges. The project is no longer maintained and the issue has not been fixed.

- **Published:** 2026-11-17T03:03:49Z
- **Last reviewed:** 2026-11-17T03:03:49Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6202
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6202.png
- **ID:** TL-2026-6202
- **Severity:** HIGH
- **Category:** VULNERABILITY
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 8 (1 shown free below)
- **CVEs:** CVE-2026-111559

## Description

CVE-2026-111559 affects Batflat, a PHP content management system published by sruupl, in versions 1.2.0 through 1.3.6. According to the CERT Polska advisory published on 2026-11-16, the application does not neutralize data submitted to the /contact endpoint before it reaches the template engine (CWE-1336, Improper Neutralization of Special Elements Used in a Template Engine). A remote, unauthenticated attacker can send a crafted POST request to this endpoint and cause arbitrary PHP code to execute on the server in the context of the web server user (www-data).

The advisory states that the project is no longer maintained and that the issue has not been fixed, so no vendor patch exists and every internet-reachable deployment of an affected version remains exposed. The advisory credits the reporter Tymbark7372 and was coordinated through CERT Polska.

Source limitations: the advisory does not provide a CVSS score or vector, a public proof-of-concept, observed in-the-wild exploitation, threat-actor attribution, or indicators of compromise. The HIGH severity rating is an analyst assessment based on the stated impact (unauthenticated remote code execution), not a source-provided rating. Status ACTIVE reflects that the flaw is unpatched, not confirmed exploitation. The ATT&CK mappings for post-exploitation behaviors (web shell persistence, discovery, collection) are analyst assessments of what code execution as www-data typically enables and are not documented in the source. Because no network IOCs exist, no BeaconBeagle correlation was applicable.

Defender guidance (analyst recommendations, not from the advisory): identify Batflat installations, restrict or block external access to /contact (WAF rule or web server deny), monitor POST requests to /contact for template syntax and PHP function names, watch for web server child processes and new or modified PHP files under the web root, and plan migration to a maintained CMS.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1059 Command and Scripting Interpreter
- T1505.003 Server Software Component: Web Shell
- T1005 Data from Local System

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**Batflat CVE-2026-111559 Template/PHP Injection Payload in POST /contact** (`TL-2026-6202-SPL-001`)

Detects POST requests to the Batflat /contact endpoint whose logged request (WAF audit log or access log with body capture) carries template-engine syntax or PHP function names. CVE-2026-111559 (CWE-1336) lets an unauthenticated attacker reach arbitrary PHP execution as www-data through this endpoint in Batflat 1.2.0 through 1.3.6, and no vendor fix exists. The exact payload is not published, so the search keys on generic template and PHP markers. Requires request-body logging; without it only the request line is visible and this rule will not fire.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1059
- **Data sources:** apache_access_log, nginx_access_log, modsecurity_audit_log
- **Severity:** high
- **Confidence:** medium

### Splunk SPL

````spl
index=web (sourcetype=access_combined OR sourcetype="nginx:plus:access" OR sourcetype=modsecurity) earliest=-24h "/contact" ```TL-2026-6202 Batflat CVE-2026-111559: POST /contact carrying template or PHP code markers```
| regex _raw="POST[ ]+/contact"
| eval raw_lc=lower(_raw)
| eval ssti_marker=if(match(raw_lc,"[{][?]|%7b%3f|[{][{]|%7b%7b|[{][$]|%7b%24|[<][?]php|%3c%3fphp"),1,0)
| eval php_func=if(match(raw_lc,"shell_exec|passthru|proc_open|popen|base64_decode|file_put_contents|phpinfo|(system|exec|eval|assert)%28"),1,0)
| where ssti_marker=1 OR php_func=1
| eval src_ip=coalesce(clientip,src,"unknown")
| stats count min(_time) as first_seen max(_time) as last_seen values(status) as status values(ssti_marker) as ssti_marker values(php_func) as php_func by src_ip host
| convert ctime(first_seen) ctime(last_seen)
````

### Microsoft KQL

```kql
Syslog
| where TimeGenerated > ago(24h)
| where ProcessName in~ ('apache2','httpd','nginx','modsecurity')
| where SyslogMessage matches regex @'POST[ ]+/contact'
| extend msg = tolower(SyslogMessage)
| extend SstiMarker = msg matches regex @'[{][?]|%7b%3f|[{][{]|%7b%7b|[{][$]|%7b%24|[<][?]php|%3c%3fphp'
| extend PhpFunc = msg matches regex @'shell_exec|passthru|proc_open|popen|base64_decode|file_put_contents|phpinfo|(system|exec|eval|assert)%28'
| where SstiMarker or PhpFunc
| project TimeGenerated, Computer, ProcessName, SstiMarker, PhpFunc, SyslogMessage
```

### Sigma

```yaml
title: Batflat CVE-2026-111559 Template or PHP Injection Payload in POST /contact
id: 3b1f6c0e-5d2a-4e7b-9a41-6c8e2f1d7a01
status: experimental
description: Detects POST requests to the Batflat /contact endpoint where the logged request line or body contains template engine syntax or PHP function names, matching CVE-2026-111559 (CWE-1336) exploitation attempts. Requires web or WAF logs that capture the request body.
references:
    - https://cert.pl/en/posts/2026/11/CVE-2026-111559/
    - https://www.cve.org/CVERecord?id=CVE-2026-111559
author: Threadlinqs Team
date: 2026-11-17
tags:
    - attack.initial-access
    - attack.t1190
    - attack.execution
    - attack.t1059
    - cve.2026.111559
logsource:
    category: webserver
detection:
    selection_req:
        cs-method: 'POST'
        c-uri|endswith:
            - '/contact'
            - '/contact/'
    keywords_payload:
        - '{?'
        - '%7B%3F'
        - '{{'
        - '%7B%7B'
        - '{$'
        - '%7B%24'
        - '<?php'
        - '%3C%3Fphp'
        - 'shell_exec'
        - 'passthru'
        - 'proc_open'
        - 'base64_decode'
        - 'file_put_contents'
        - 'phpinfo'
    condition: selection_req and keywords_payload
falsepositives:
    - Security scanners or penetration tests that submit template or PHP payloads to the contact form
    - Legitimate visitors pasting code snippets or curly-brace text into the contact message
level: high
```

**Known false positives:**

- Authorized vulnerability scanners or pentests submitting template/PHP payloads to /contact
- Visitors legitimately pasting code or curly-brace text into the contact message field

**Tuning notes:** Enable request-body logging (ModSecurity SecAuditLogParts including C, or an nginx log_format with $request_body) or the rule cannot see the payload. Adjust index and sourcetype to your web or WAF data. Allowlist scanner source IPs. The payload is not public, so review marker regexes as exploit details emerge.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- Batflat CVE-2026-111559 Server Errors on POST [indicator] (Exploit Probing) (locked: unlock with TL Creds)
- Batflat Host Web Server Process Spawning Shell or Discovery Commands (locked: unlock with TL Creds)
- Batflat Host Web Server Process Downloading Tools via curl or wget (locked: unlock with TL Creds)
- Batflat [indicator] Request URI Containing Template or PHP Code Markers (locked: unlock with TL Creds)
- Batflat Host Web Server Child Process Reading Sensitive Files or Staging Data (locked: unlock with TL Creds)
- Batflat Host Web Server Child Process Reverse Shell Command Line (locked: unlock with TL Creds)
- Batflat Host Web Server Process Writing PHP File (Web Shell Drop) (locked: unlock with TL Creds)
- Batflat Host Web Server User Outbound Connection to Public IP on Unusual Port (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (1 of 8)

Defanged, TLP:CLEAR.

- URL: `hxxps://cert[.]pl/en/posts/2026/11/CVE-2026-111559/`

Full set of 8 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [CERT Polska: Vulnerability in Batflat software](https://cert.pl/en/posts/2026/11/CVE-2026-111559/)
- [CVE record CVE-2026-111559](https://www.cve.org/CVERecord?id=CVE-2026-111559)
- [CERT Polska Coordinated Vulnerability Disclosure process](https://cert.pl/en/cvd/)
- [CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine](https://cwe.mitre.org/data/definitions/1336.html)
- [Batflat project repository (sruupl/batflat)](https://github.com/sruupl/batflat)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6202
