Join our Newsletter — 33% off our NHI Course
Home› Guides› FortiWeb Hardening Guide: Locking Down Admin Access, Signatures,…
Guide Application Security

FortiWeb Hardening Guide: Locking Down Admin Access, Signatures, Bots and Patching

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 19 November 2026 15 min read
On this page

FortiWeb sits in front of your most exposed web applications, so a weak management plane on the WAF itself can turn a protective control into the easiest way in. In 2025 Fortinet published three FortiWeb advisories that it had seen exploited in the wild, two of them reachable without authentication through the web management interface. This guide sets out a practical hardening baseline: where the appliance sits, who can administer it and from where, how to keep signatures and firmware current, how to use the bot mitigation features without breaking real users, and how to check an appliance that may already have been touched.

The guide is written for practitioners who own FortiWeb appliances or virtual machines, and for security leads who need to know what "hardened" should mean for a WAF. It treats the administrator accounts, API access and integration credentials on the appliance as non-human and privileged identities that need the same discipline as any other privileged access path.

This is an independent guide from NHI Mgmt Group, based on Fortinet's public documentation as of November 2026. It is not sponsored or reviewed by Fortinet. Product features change, so confirm settings against Fortinet's current documentation.

Key takeaways

  • The FortiWeb management interface must never be reachable from the internet. Fortinet's own workaround for CVE-2025-64446 and CVE-2025-25257 is to disable HTTP and HTTPS administrative access on internet-facing interfaces.
  • Restrict administration to one dedicated interface and to trusted hosts, and enable only the management protocols you actually use.
  • Treat the built-in admin super-administrator as a break-glass account. Give named administrators limited access profiles, and prefer remote (LDAP or RADIUS) authentication for day-to-day use.
  • Keep FortiGuard signature subscriptions current on a frequent schedule, and track firmware branches against Fortinet PSIRT advisories and the CISA Known Exploited Vulnerabilities catalogue.
  • After any exposure to an exploited advisory, look for unexpected configuration changes, unexpected log modifications and unauthorised administrator accounts, as Fortinet recommends.
  • Roll out bot mitigation and protocol constraints in monitor mode first, compare against observed traffic, then enforce.

Why FortiWeb needs its own hardening baseline

A web application firewall is a reverse proxy that terminates TLS, inspects every request and often holds the private keys for the sites it protects. That makes it a high-value target in its own right. An attacker who controls the WAF can read decrypted traffic, change policies so that attacks pass through silently, harvest certificates and keys, and use the appliance as a foothold inside the application network.

The 2025 FortiWeb advisories show how this plays out. According to Fortinet's advisory FG-IR-25-151, published on 8 July 2025, CVE-2025-25257 was an unauthenticated SQL injection in the GUI that let a remote attacker run unauthorised SQL code or commands through crafted HTTP or HTTPS requests, with a CVSS v3.1 base score of 9.8. Fortinet updated the advisory on 18 July 2025 after observing exploitation. On 14 November 2025 Fortinet published FG-IR-25-910 for CVE-2025-64446, a relative path traversal in the GUI that lets an unauthenticated attacker execute administrative commands, again rated 9.8, and stated that it had observed exploitation in the wild. Four days later, FG-IR-25-513 covered CVE-2025-58034, an OS command injection in the API and CLI rated 7.2, also observed exploited. All three appear in the CISA Known Exploited Vulnerabilities catalogue, added on 18 July 2025, 14 November 2025 and 18 November 2025 respectively.

The common thread is the management plane. Two of the three flaws needed nothing more than network reach to the web administration interface. A FortiWeb that only accepts management traffic from a small administrative network would have been far harder to attack, which is why most of this guide is about reducing who and what can reach the appliance's control surfaces.

Placement and network topology

Fortinet's hardening guidance starts with placement. FortiWeb belongs between your web servers and a general-purpose firewall such as a FortiGate; it does not replace that firewall. In more complex networks you must make sure web traffic cannot bypass FortiWeb, otherwise attackers simply route around the WAF to the origin servers.

  • Close bypass paths. Origin servers should accept application traffic only from FortiWeb addresses. Check DNS records, old load balancer virtual servers and direct cloud public IPs for paths that skip the WAF.
  • Define trusted proxies. If a load balancer or CDN sits in front of FortiWeb, define it as a trusted proxy (Fortinet documents this under "Defining your proxies, clients, & X-headers") so that attackers cannot spoof X-Forwarded-For: or X-Real-IP: to evade IP-based rules or poison logs.
  • Disable unused interfaces. Fortinet recommends disabling network interfaces that should receive no traffic, under Network > Interface.
  • Separate management from data. Put the management interface on an out-of-band administrative network or a dedicated management VLAN reachable only through a hardened jump host or privileged access workstation.

Locking down administrative access

Administrator access to the FortiWeb web UI, CLI and diagnostic tools depends on three things: the trusted hosts set on the administrator account, the protocols enabled on each interface, and the permissions in the account's access profile. All three need to be tight.

Interfaces and protocols

Fortinet advises restricting administrative access to a single interface, usually port1, and allowing only the management protocols you need. Disable PING except while troubleshooting, and disable HTTP and SNMP unless the interface connects only to a trusted, private administrative network. Never enable HTTPS administrative access on an interface that faces the internet or carries production web traffic. This single setting is the workaround Fortinet gives for both CVE-2025-64446 and CVE-2025-25257.

Trusted hosts

Configure trusted hosts on every administrator account so that logins are only accepted from known management addresses. Fortinet notes that you should configure IPv4 entries, because an IPv6 ::/0 entry is ignored. Keep the trusted host list short: the jump host subnet, the FortiManager address if you use one, and nothing else. Review it whenever management networks change.

Idle timeout and sessions

Fortinet recommends keeping the default Idle Timeout of five minutes and does not recommend lengthening it. Long-lived idle sessions on a shared management workstation are a common way for an administrative session to be reused by someone else.

Management workstations and backups

The computers that administer FortiWeb should follow strict patching and security policies. Configuration backups contain secrets, so Fortinet recommends protecting them with an Encryption Password. Store backups in an access-controlled location and treat the encryption password as a managed secret, not something written in a runbook.

Administrator accounts, access profiles and credentials

FortiWeb administrators are configured under System > Admin > Administrators. Accounts are either Local User, with credentials stored in the FortiWeb configuration, or Remote User, where authentication queries an external server such as LDAP (for example Microsoft Active Directory) or RADIUS through an Admin User Group.

The built-in admin account

The default admin account starts with a blank password and must change it at first login or after importing a configuration with a blank password. The account cannot be deleted and the name is reserved. Fortinet recommends setting its password during initial setup and limiting access to this super-administrator account to as few people as possible. In practice, treat it as a break-glass account: a long random password held in a password vault or privileged access management tool, checked out under dual control, and rotated after each use.

Named accounts and least privilege

Fortinet advises against giving new administrators the default administrator access profile. Create access profiles with limited permissions instead, for example:

RoleSuggested scope (NHI Mgmt Group recommendation)
WAF policy engineerRead and write on server policies, web protection profiles and signatures; read only on system and network settings.
SOC analystRead only on logs, reports and attack dashboards; no configuration rights.
Platform administratorRead and write on system, network and firmware; limited to a small named group.
Automation or integration accountOnly the categories the integration needs; trusted hosts limited to the integration server.

Only accounts with read and write permission on the Admin Users category can see the Administrators page, so keep that permission for the platform administrator group alone.

Authentication strength

Fortinet's minimum guidance is administrator passwords of at least eight characters with both letters and numbers, enforced through Password Policy, and regular changes (the documentation gives every 60 days as an example). That is a floor, not a target. Prefer remote authentication against your directory so that joiner, mover and leaver processes apply to WAF administrators automatically, and enforce multi-factor authentication through the RADIUS or identity provider path where your deployment supports it. Fortinet also documents certificate-based web UI login, which is worth evaluating for platform administrators.

Integration and automation credentials

FortiWeb is often driven by FortiManager, configuration management pipelines or SOAR playbooks. Each of those integrations is a non-human identity with administrative reach. Give each its own account, never share the admin account with a tool, restrict its trusted hosts to the calling system, store its credential in a secrets manager, and rotate it on a schedule and whenever an operator who knew it leaves. CVE-2025-58034 sits in the API and CLI path, which is a reminder that authenticated automation interfaces are part of the attack surface too.

Signatures, FortiGuard updates and protocol constraints

A WAF is only as good as its detection content. Fortinet's hardening guidance is to keep FortiGuard subscription services current, using either manual or automatic updates, and to schedule updates often. The setting lives under System > Config > FortiGuard.

  • Automate signature updates. Enable scheduled updates and alert when an update fails or the subscription is close to expiry. A lapsed subscription silently freezes detection.
  • Stage major signature changes. For high-risk applications, test new signature sets on a staging policy or in alert-only mode before enforcement, then promote.
  • Use HTTP protocol constraints. Fortinet recommends that, if your applications do not need oversized requests, you block them with the Malformed Request and Total URL Parameters Length constraints, and configure exceptions for URLs that legitimately need large payloads such as media uploads.
  • Baseline before you limit. Observe normal traffic first and compare it with FortiWeb's buffer counts and maximum sizes before setting limits, so that constraints block abuse rather than customers.
  • Protect administrative paths of the applications behind FortiWeb. Fortinet suggests URL access control rules to limit access to web application administrative pages from untrusted networks.

For user-facing authentication through FortiWeb, Fortinet recommends allowing authentication only over encrypted channels such as HTTPS and, where possible, requiring mutual authentication with client certificates. Revoke compromised certificates immediately and automate certificate revocation list distribution where you can.

Bot mitigation without breaking real users

FortiWeb's bot features, as described in Fortinet's WAF features against bot attacks page, combine several detection methods:

  • Biometrics-based bot detection looks at client-side interaction such as mouse movement, keyboard input, touch and scrolling to tell people from scripts.
  • Threshold-based bot detection flags behaviour at abnormal rates, such as repeated 403 or 404 responses, attack signatures, slow attacks, content scraping and illegal user scans.
  • Bot deception inserts hidden links into HTML responses; clients that follow them reveal themselves and FortiWeb can block or log their requests.
  • Known bots separates legitimate crawlers, such as search engines, from malicious ones such as DDoS bots, spammers and scrapers.
  • Machine learning based bot detection learns normal behaviour across thirteen dimensions using a support vector machine and flags anomalies without manual threshold tuning.

A sensible rollout, which is NHI Mgmt Group guidance rather than vendor instruction, looks like this:

  1. Start with known bots and threshold-based detection in alert mode on the highest-risk paths: login, password reset, account creation, checkout and search APIs.
  2. Review alerts for a full business cycle, including month-end or seasonal peaks, and add exceptions for your own monitoring tools and partners.
  3. Enforce on login and registration paths first, where credential stuffing and fake account creation do the most damage.
  4. Add biometrics or machine learning detection to interactive flows once you understand false positives. Be careful on pure API endpoints, where there is no browser to collect client-side signals.
  5. Keep a documented, owned allow list for legitimate automation such as uptime checks and partner integrations, and review it quarterly. Unowned allow list entries are a quiet way for abuse to persist.

Firmware and vulnerability management

Fortinet's hardening page is direct: upgrade to the latest firmware. In practice, that means tracking each FortiWeb branch you run against Fortinet PSIRT advisories. The fixed releases for the 2025 exploited issues were:

AdvisoryBranch 8.0Branch 7.6Branch 7.4Branch 7.2Branch 7.0
FG-IR-25-151 (CVE-2025-25257)Not listed7.6.4 or later7.4.8 or later7.2.11 or later7.0.11 or later
FG-IR-25-910 (CVE-2025-64446)8.0.2 or later7.6.5 or later7.4.10 or later7.2.12 or later7.0.12 or later
FG-IR-25-513 (CVE-2025-58034)8.0.2 or later7.6.6 or later7.4.11 or later7.2.12 or later7.0.12 or later

The 6.4 branch is listed as not affected by these three advisories. Note that the November fixes differ by branch: a 7.6.5 appliance fixed for CVE-2025-64446 still needed 7.6.6 for CVE-2025-58034. Always check the latest advisory list rather than assuming one upgrade closes everything.

  • Subscribe to Fortinet PSIRT notifications and check the CISA Known Exploited Vulnerabilities catalogue daily for Fortinet entries.
  • Set an emergency patch target, for example 72 hours, for any FortiWeb advisory marked as exploited or added to KEV, and apply the published workaround (disabling HTTP and HTTPS administrative access on exposed interfaces) immediately while you schedule the upgrade.
  • Keep high-availability pairs and every virtual instance on the same fixed release. A forgotten secondary appliance or test VM is often the one that gets exploited.
  • Track internet exposure of management ports with external attack surface scanning, not just internal inventory.

Logging, monitoring and compromise checks

For the November 2025 path traversal flaw, Fortinet's advisory does not publish specific indicators of compromise. Instead it recommends reviewing the configuration for unexpected changes, reviewing logs for unexpected modifications, and looking for unauthorised administrator accounts. Build those checks into routine monitoring, not just incident response.

  • Forward event and attack logs off the appliance to a SIEM or FortiAnalyzer so that an attacker with administrative control cannot erase the only copy.
  • Alert on administrator lifecycle events: new administrator accounts, changes to access profiles, trusted host edits and password changes outside change windows.
  • Alert on management access from unexpected sources, including any successful login from outside the trusted host ranges, which should be impossible if trusted hosts are configured correctly.
  • Baseline the configuration. Export an encrypted configuration after each approved change and compare it on a schedule. Unexplained differences in server policies, exception lists or administrator settings are a strong compromise signal.
  • Watch for policy weakening: protection profiles switched to alert only, new global allow lists, or signatures disabled without a ticket.

Illustrative detection logic, to be adapted to your own log schema: alert when an administrator account is created on any FortiWeb and no matching change ticket exists, and alert when any administrative login succeeds from an address outside the management subnet. If you find evidence of compromise, treat every secret on the appliance as exposed: rotate administrator and integration credentials, replace TLS certificates and private keys held on the WAF, and rebuild from known-good firmware and a reviewed configuration.

Common failure patterns

  • HTTPS administration left on the public interface because it was convenient during initial build, and never removed.
  • One shared admin login used by several engineers and an automation tool, so no action can be attributed and the password never changes.
  • Trusted hosts left empty or set to any address, which removes the second barrier behind interface restrictions.
  • Lapsed FortiGuard subscription that nobody notices because the WAF keeps passing traffic.
  • Patched primary, unpatched secondary in an HA pair, or a forgotten lab VM with a public IP.
  • Origin servers still reachable directly, making the WAF optional for attackers.
  • Bot rules enforced on day one, causing customer lockouts, followed by the feature being switched off entirely.
  • Unencrypted configuration backups on file shares, exposing credentials and keys.

Practitioner checklist

  • Confirm no FortiWeb interface that faces the internet or carries production traffic has HTTP, HTTPS, SSH, SNMP or PING administrative access enabled.
  • Restrict administration to one management interface and configure IPv4 trusted hosts on every administrator account.
  • Vault the built-in admin password and use it only as break-glass; create named accounts with limited access profiles.
  • Move day-to-day administrators to LDAP or RADIUS authentication with multi-factor authentication, and apply a strong Password Policy for any local accounts.
  • Give each integration its own restricted account with its own trusted hosts, and store its credential in a secrets manager.
  • Keep Idle Timeout at five minutes and encrypt every configuration backup.
  • Verify every appliance, HA peer and VM is on a release fixed for FG-IR-25-151, FG-IR-25-910 and FG-IR-25-513, and on the latest maintenance release of its branch.
  • Enable scheduled FortiGuard updates and alert on update failures and subscription expiry.
  • Define trusted proxies for X-Forwarded-For handling and close direct paths to origin servers.
  • Roll out bot mitigation and HTTP protocol constraints in alert mode, then enforce after review.
  • Forward logs off the appliance and alert on new administrators, trusted host changes and logins from unexpected sources.
  • Run a compromise review on any appliance that was exposed while vulnerable: configuration diff, log review and administrator account audit.

Standards and references

Related NHI Mgmt Group resources: FortiGate Hardening Guide · FortiManager and FortiAnalyzer Hardening Guide · Bot Management Guide · API Key Management Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.