A CMS upload endpoint can remain exposed even after the main website starts passing through a WAF. One concrete misconfiguration causes this: the hostname used for uploads still resolves directly to the origin server. The homepage is protected, but requests to the media endpoint take another route.
For security owners investigating how to block malicious file uploads on a CMS, this routing check comes before tuning detection. A security control cannot inspect requests that never reach it. The concern is web shell placement: an attacker exploits weak upload validation to store server-executable content, then requests that file to run commands under the web application's privileges.
The following is a troubleshooting scenario, not a reported incident. It focuses on evidence you can collect without uploading a working web shell.
The misconfiguration: a separate upload hostname points to the origin
Suppose a CMS serves its administrative interface through www.example.com, while its media uploader sends multipart requests to uploads.example.com. The website hostname points to SafeLine, but the upload hostname retains an older DNS record pointing at the application server.
SafeLine's documented deployment model is an HTTP/HTTPS reverse proxy. Its application configuration includes Domain, listening Port, and Upstream, followed by resolving the configured domain to the SafeLine server's IP address. That last routing step matters for every hostname carrying application traffic. See the official application configuration guide.
An attacker who discovers the upload hostname can submit files directly to that endpoint. If the CMS trusts a filename extension or a client-supplied content type, and the destination permits script execution, a successful upload may become an execution path. WAF routing and application validation are separate checks in this chain.
Find the missing request before changing rules
Start with the browser's developer tools while uploading a harmless, uniquely named image through an authorized test account. Record the request hostname, path, method, timestamp, and response. Do not assume the uploader uses the same hostname as the page displaying it.
Compare that request with the origin's access log and your DNS configuration. The characteristic evidence is an upload request recorded at the origin while its hostname resolves to an address that bypasses SafeLine. An empty WAF attack list alone does not prove bypass: a benign upload need not produce an attack event.
Use three checks to establish the route:
- Confirm the exact destination hostname from the browser's network panel.
- Check its DNS records, including IPv6 records, against the intended WAF entry point.
- Review whether the origin's application port remains reachable through another hostname or its public address.
If these checks show that uploads already traverse the WAF, stop pursuing this diagnosis. Investigate CMS validation, storage permissions, and the specific request instead.
Correct the route and collect proof
Configure the upload hostname as an application in SafeLine using the appropriate domain, listening port, HTTPS settings, and upstream address. Then update its DNS routing according to the official configuration instructions. Verify that certificates, upload responses, and normal media retrieval still work.
Where your infrastructure permits it, restrict the origin's application listener to the intended proxy path. Otherwise, changing DNS leaves a direct connection route available to someone who knows the origin address. Preserve necessary health checks and administrative access when making that change.
For the confirming screen, use an authorized staging environment with the same routing arrangement. The SafeLine guide supplies common attack test requests and states that its blocking page confirms interception; it also directs administrators to the console's attack list and the event's "detail" view. Run a documented test against the corrected upload hostname, then correlate its timestamp and hostname with that attack entry. See the documented verification procedure.
Keep that blocking screen or event detail alongside the DNS result and the successful benign upload record. Together, they demonstrate that the hostname reaches the WAF and that legitimate uploading still works. The generic attack test does not establish that every malicious file will be detected.
Close the upload execution path
The supplied SafeLine documentation describes HTTP traffic filtering and general attack defenses, but does not establish CMS-specific file validation or uploaded-file malware scanning. Its product overview supports using it as a traffic inspection layer.
At the CMS, enforce an allowlist of required file types, validate content server-side, generate storage names, and prevent uploaded content from executing. Check authentication, authorization, size limits, and upload-related extensions. If a suspicious file already exists, preserve relevant logs and investigate access to that file; correcting routing does not remove a previously planted web shell.
Does a blocked test prove malicious uploads are blocked?
No. It verifies interception of that test request. Upload validation and non-executable storage require separate checks.
Why is the attack list empty after a normal upload?
A harmless upload is not necessarily an attack event. Use browser evidence, DNS checks, and origin logs to investigate its route.
Should I test with a working web shell?
Use harmless files for functional checks and documented attack tests in an authorized staging environment. A functioning shell is unnecessary for this routing diagnosis.
What confirms this particular fix?
The upload hostname resolves through the intended WAF entry point, a documented attack test produces a matching SafeLine blocking event, legitimate uploads succeed, and direct origin access is restricted as intended.
SafeLine has surpassed 700,000 installations worldwide as of September 30, 2026. SafeLine Pro annual promotional pricing is $650-$880, compared with the regular $1,000 per year.