Securing WebOffice — Recommendations for Production Use
|
Who this article is for: WebOffice administrators. We assume that you run and configure WebOffice — not that you are a security specialist or a developer. We explain technical terms where they first appear. |
Contents
2.Quick start: the three most important measures
3.How to proceed — one measure at a time
4.Staying up to date: WebOffice, Java and Apache Tomcat
5.Securing the connection: HTTPS, security headers, cookies
8.Securing the WebOffice output service and database access
9.Forwarding and retrieval through the WebOffice server
10.Passing the user context on to business applications
13.External services: OGC and services added by users
15.Checklist
1 · What this article is about
WebOffice comes with secure basic functions. How strictly your installation is configured, however, is your decision — because it depends on your system landscape and on the requirements of your IT department.
Why the default values are not always the most secure ones. When we change a default value, the behavior changes for all existing customers with the next update. That can disrupt running workflows. Some default values are therefore designed for compatibility rather than maximum security. This article names exactly these cases and tells you which value we recommend for production use.
Agree the measures with your IT department. Several settings affect the network and the login. Where this is the case, it is stated explicitly. If your organization has a role responsible for information security — often called "CISO" —, agree the values with them.
What this article is not. It does not list vulnerabilities and does not describe attack paths. It is solely about settings that make your installation more robust.
2 · Quick start: the three most important measures
If your time is limited, start here. These three measures bring the greatest security gain and are the least likely to disrupt ongoing operation.
|
Measure |
Effort |
Risk to ongoing operation |
|---|---|---|---|
1 |
Use a current version and patch regularly — WebOffice, Java and Apache Tomcat (→ Section 4) |
medium, ongoing |
low |
2 |
Secure the WebOffice output service (SynOutputService) and give WebOffice an account of its own for it (→ Section 8) |
low |
low |
3 |
Restrict administration interfaces to the internal network — SynAdmin, WebOffice Author and UserManagement Admin Web (→ Section 14) |
low |
low |
Everything else is worthwhile as well, but needs more testing because it changes the behavior of the application.
3 · How to proceed — one measure at a time
Please keep to this order. It may sound cumbersome, but it saves you a tedious search for the cause when something stops working after five simultaneous changes.
1.Implement one measure — not several at once.
2.Test the workflows that are actually used in your organization: open the map, run a query, print, edit, log in.
3.Briefly note the result: date, changed value, test result.
4.Only then move on to the next measure.
Ideally on a test or acceptance system first, then in production. Prepare a way back for each step — usually a copy of the configuration file made before the change is enough.
This procedure is particularly important for measures that noticeably change the behavior: Content Security Policy, checking of redirects including the allow list, "Endpoint Restrictions" of the Esri Resource Proxy, allowed servers when adding services, rules on a web application firewall, removal of sample pages, and cookie settings.
4 · Staying up to date: WebOffice, Java and Apache Tomcat
What it is about
No setting in the world protects an outdated installation. Today, vulnerabilities are searched for automatically and on a large scale; often only days pass between a vulnerability becoming known and the first attack attempts. Keeping up to date is therefore the foundation on which everything else in this article is built.
What we recommend
Only run versions that are in the product lifecycle. We provide fixes — in particular security-relevant ones — only for these versions. You can find the current status here: → Product Lifecycle
Update WebOffice regularly and promptly. We continuously provide updates for versions in the product lifecycle: → https://resources.weboffice.vertigis.com/
|
Tip: install patches with the script. We provide a script for installing WebOffice patches. It takes the individual steps off your hands, performs comprehensive checks along the way and considerably reduces effort and downtime. Description and download: → Installing a WebOffice Patch Automatically |
Keep Java and Apache Tomcat up to date on their own schedule. In practice, this is the point most frequently overlooked. Two third-party components run underneath WebOffice: the Java JDK (the runtime environment) and Apache Tomcat (the web server in which WebOffice runs). Both receive their own security fixes, independently of WebOffice.
|
Please treat this update as a separate, recurring maintenance task — and not, as is often the practice, only as part of switching to a new WebOffice major release. A vulnerability in Java or Tomcat affects your installation regardless of when the next WebOffice release is published. Waiting for it leaves the window for attacks open unnecessarily long. |
The system requirements in the product documentation state which versions of Java and Tomcat your WebOffice version supports. You should update regularly within this range.
|
Tip: update Java and Tomcat with the script. There is a script for this as well. It performs comprehensive checks before and after the update and considerably reduces effort and downtime. This turns regular updating into a routine instead of a project. Description and download: → Automatically updating Java and Apache Tomcat |
Get notified about new versions. Then you do not have to check yourself:
•Apache Tomcat: Send an empty e-mail to announce-subscribe@tomcat.apache.org. The Tomcat project uses this list to announce new versions and security fixes; the message volume is low. More information at https://tomcat.apache.org/lists.html, section "tomcat-announce".
•Java (Eclipse Temurin / Adoptium): Subscribe to the feed https://adoptium.net/rss.xml
|
Tip: Send the notifications to a team or shared mailbox, not to a personal address. This way, they still arrive when someone is on vacation or the team changes. |
Keep WebOffice Author Standalone up to date as well. This tool also includes third-party components that receive their own fixes.
5 · Securing the connection: HTTPS, security headers, cookies
What it is about
A reverse proxy is the web server in front of WebOffice that accepts requests from the network and forwards them — often an nginx, an Apache HTTP Server or a web application firewall. Security headers are additional lines in the response to the browser; they tell the browser what it may and may not do with the page.
|
Good to know: These settings are not made in WebOffice. WebOffice itself does not set these headers. You configure them on your reverse proxy or in Apache Tomcat. In Tomcat, the relevant component is called HttpHeaderSecurityFilter; the cookie settings are in the context configuration. |
What we recommend
Offer HTTPS only. No unencrypted access.
Only then enable HSTS. HSTS is an instruction to the browser to call this address only in encrypted form from now on. This is effective but also inconvenient: as long as the instruction applies, the browser will no longer reach the page unencrypted — even if you needed that for a short time. Therefore only enable HSTS once the switch to HTTPS is complete, and start with a short validity period (max-age) that you then increase step by step.
Cookie settings. This mainly concerns the session cookie that Apache Tomcat sets for WebOffice (JSESSIONID).
Setting |
Recommendation |
What to keep in mind |
|---|---|---|
Secure |
always |
The cookie is only transmitted via HTTPS. Tomcat sets Secure automatically when the request reaches Tomcat via HTTPS — also with IIS and an Apache Tomcat Connector. If a reverse proxy terminates the HTTPS connection and talks to Tomcat via HTTP, tell Tomcat so: set secure="true" and scheme="https" on the connector. |
HttpOnly |
always |
Scripts in the browser cannot read the cookie. This is already the default in Tomcat. |
SameSite |
Lax |
see below |
SameSite: what the values do. SameSite defines whether the browser sends the cookie when a request comes from another website. This prevents a foreign page from triggering actions in a logged-in WebOffice session in the background.
Value |
Cookie is sent with requests coming from another website … |
Effect on WebOffice |
|---|---|---|
Strict |
never |
Users who come back via a link from another website or after a single sign-on login are not recognized as logged in: they have to log in again, or the SSO login fails. Do not use. |
Lax |
only for a normal page call (link, redirect) — not for embedded content, background requests and forms |
Recommended. Links and the return after the SSO login work; requests that a foreign page sends in the background get no session. |
None |
always |
No protection by SameSite. Only needed if WebOffice is embedded in a frame on a page of another website and is used logged in there. Only together with Secure — without Secure, the browser discards the cookie and nobody can log in any more. |
not set |
Tomcat default: the browser decides, and browsers differ. |
inconsistent behavior — therefore set the value explicitly |
"Another website" means another domain: gis.example.com and portal.example.com belong to the same website example.com. For embedding within your own domain, Lax is therefore sufficient.
How to set it. In Apache Tomcat, in the file conf/context.xml, inside the <Context> element:
<CookieProcessor sameSiteCookies="lax" />
For None, write sameSiteCookies="none" — only if WebOffice is reachable exclusively via HTTPS and Secure is set (see above). The setting applies to all applications in this Tomcat. Then restart Tomcat and test the login; with SSO, explicitly also the return from the identity provider.
|
Do not create a separate file conf/Catalina/localhost/<application>.xml for this. It completely replaces the context configuration supplied with WebOffice, and WebOffice then no longer starts without errors. |
Cookies of SSO components such as Shibboleth are not set by Tomcat; you configure them in the respective component.
Apache Tomcat error pages without version information. For some errors — such as an invalid request (status 400) or a page that does not exist — it is not WebOffice that responds but Apache Tomcat with its own error page. In the delivered state, this page shows the exact Tomcat version and technical details. A user does not need either, but both make it easier to search specifically for known vulnerabilities. Add the following in conf/server.xml inside the <Host> element:
<Valve className="org.apache.catalina.valves.ErrorReportValve" showReport="false" showServerInfo="false" />
Then restart Tomcat. How to check: Call an address that does not exist, e.g. https://<your server>/WebOffice/doesnotexist. The error page must no longer show a Tomcat version.
What can go wrong
If you embed WebOffice in another page, do not set X-Frame-Options to DENY or SAMEORIGIN. This setting prevents the browser from embedding the page entirely — and thus breaks the MapWidget as well as portal pages and landing pages that display WebOffice in a frame.
Use an allow list of the pages that may embed WebOffice instead. You set this line on the reverse proxy:
Content-Security-Policy: frame-ancestors 'self' https://portal.example.com
Two notes on this:
•This setting can not be made in the WebOffice configuration (see Section 11), only on the reverse proxy.
•If WebOffice itself sends a Content Security Policy and your proxy sends a second one, both apply together — only what is allowed in both. Therefore set only frame-ancestors on the proxy and no other rules, otherwise you will unintentionally lock yourself out.
If you configure CORS on the proxy: CORS controls which other websites may retrieve data from your server. WebOffice has no setting of its own for this. If you set it on the proxy, only allow specific addresses — never * together with credentials and never the value null.
How to tell that it works
Open WebOffice in the browser, open the developer tools (F12), tab "Network", and look at the response headers of the first request. Alternatively, on the command line with curl -I <your WebOffice address>.
What it is about
These settings are in the application configuration under COMMON › SECURITY. They make automated password guessing harder and prevent session information from ending up in places where it does not belong.
What we recommend
Setting |
Default value |
Recommendation |
What it does |
|---|---|---|---|
ANTI_AUTOMATION |
6 failed attempts → 4 s wait, 20 → 10 s |
review, tighten if necessary |
Delays the response after several failed logins. This makes automated guessing unattractive. |
check_session_spoofing |
false |
true |
WebOffice checks whether a session continues to be used by the same client. Caution: If your users work behind a proxy or a shared internet address (NAT), enter these addresses in spoofing_whitelist — otherwise valid sessions are rejected. |
login_by_xmlhttprequest |
— |
enable |
The login then takes place in the background, and session information does not appear in the address bar. |
MUTUAL_TLS, TRUSTSTORE_* |
— |
only if you use client certificates |
Mutual certificate validation. |
When logging in via LDAP: enable the encrypted connection. The setting use_secure_connection is false by default, so the connection to the directory service is unencrypted. For production use, we recommend true (LDAPS).
How to tell that it works
Since WebOffice 10.9 R5, failed logins and lockouts are recorded in the log — failed attempts at level INFO, a triggered lockout as WARN. This lets you check in the log whether someone is guessing passwords. If you run log monitoring, it is worth adding a rule for this.
What it is about
Log files are indispensable for operation. At the same time, they accumulate a lot: user names, addresses, sometimes session identifiers. Whoever can read the logs knows a lot about your installation.
What we recommend
1 · Remove the query string from the access logs. The query string is the part of an address after the question mark. For some calls, it contains session identifiers or tokens. By default, Apache Tomcat and IIS write the complete address to their access log — so these values end up permanently on disk and in every log evaluation.
Configure the access log so that only the path without the query string is logged. In Tomcat, this concerns the format of the AccessLogValve: %r contains the query string, %U does not.
2 · Restrict access to log and statistics files. Only operations staff should be able to read the directories containing the WebOffice logs and the statistics or tracking file. Also include these files in your retention periods.
3 · Do not serve logs through the web server. Check that the log directories are not accidentally reachable through an address in the browser.
What has changed in your favor
You do not have to solve these points yourself — they are already fixed in current versions. A good reason to stay up to date (see Section 4):
•Values in HTTP headers such as credentials and tokens are masked in the log instead of being written in clear text.
•Line breaks in logged values no longer break up the statistics file and can no longer be misused to create forged lines.
•If a call parameter contains embedded credentials, the password no longer appears in clear text in the statistics and main log.
•Error pages no longer write a complete dump of the request including session contents to the log; the message is throttled.
8 · Securing the WebOffice output service and database access
8.1 · Securing the WebOffice output service
What it is about
The WebOffice output service is a map service on your ArcGIS Server. In almost all installations it has the default name SynOutputService. The WebOffice SOE is enabled centrally on this service — an extension of ArcGIS Server through which WebOffice creates, among other things, maps for printing and export. The WebOffice output service therefore runs on ArcGIS Server, outside of WebOffice.
The key point: The WebOffice SOE has no access control of its own. It serves every request that ArcGIS Server lets through to the WebOffice output service. Securing it must therefore be done on ArcGIS Server, directly on this service.
What we recommend
|
Always secure the WebOffice output service (usually SynOutputService) — so that only logged-in and authorized callers can reach it. This applies regardless of whether your installation is reachable from the internet or only from the intranet. |
How you proceed depends on how your ArcGIS Server is operated:
•ArcGIS Server standalone — you manage users and roles in ArcGIS Server Manager.
•ArcGIS Server as a federated server of an ArcGIS Enterprise portal — you manage users, groups and sharing in the portal.
ArcGIS Server standalone
With a standalone server, WebOffice accesses the output service through the ArcGIS Server publisher user that you store in the application configuration. The WebOffice SOE also needs this user to read settings of ArcGIS Server.
|
Give WebOffice a publisher user of its own. This does not mean a Windows service account, but a user that you create in ArcGIS Server Manager and that is used exclusively by WebOffice. Do not use the account with which people publish services, nor the account with which end users or other programs access your map services. This gives you three benefits: •The output service can only be reached by WebOffice and the ArcGIS Server administrators — not by end users and other programs. •The ArcGIS Server logs clearly show which requests come from WebOffice. •You can lock the user or change its password without affecting other people or programs. |
How to proceed — in ArcGIS Server Manager:
1.Create the role. Under Security › Roles, click New Role. Role name such as weboffice_publisher_role, role type Publisher. WebOffice needs publisher rights; it does not need administrator rights.
2.Create the user. Under Security › Users, click New User. Choose a meaningful user name, such as weboffice_publisher, and a strong password. Under "Full Name" and "Description", enter what the user is for, such as "WebOffice". Add it as the only member of the role you just created.
3.Make the output service private. Under Services, open Edit Permissions for the SynOutputService service:
•Select Private, available only to selected users.
•Do not enable Allow access to all users who are logged in.
•Under Allowed Roles, enter no role. Then only administrators and publishers can reach the service.
•Save.
In WebOffice Author:
4.Store the publisher user. In the application configuration under WebOffice › List of ArcGIS Server publisher users, create an entry for your ArcGIS Server: server URL, User name and Password of the new user, Federated server? = No. If there is already an entry for this server, replace the user name and password there.
5.Reload the application and test printing and export.
|
Good to know: If a publisher user is stored, WebOffice uses it for all services of this ArcGIS Server — the "Service user" and "Password" fields of the service in the project then have no effect. Handle the password of this user with corresponding care. |
ArcGIS Server as a federated server
If your ArcGIS Server is federated with an ArcGIS Enterprise portal, WebOffice accesses the output service during work with the portal account of the logged-in user. WebOffice Author therefore does not offer user and password fields for services of a federated server. Deliberately store no shared account there — a portal account used jointly by many users contradicts the ArcGIS Enterprise licensing model.
How to proceed:
1.In the portal: Share the SynOutputService only with the group that contains your WebOffice users — not with "Everyone (public)" and not with the whole organization if it also contains other people.
2.In WebOffice Author: In the application configuration under WebOffice › List of ArcGIS Server publisher users, enter a dedicated portal user with publisher rights for this server, Federated server? = Yes. WebOffice uses it at startup and for administration tasks, for example in SynAdmin — not for the users' work. Here, too: an account only for WebOffice.
3.Reload the application and test printing and export with a user of the group — and cross-check that someone outside the group cannot reach the output service.
How to tell that it works
At startup, WebOffice writes a warning to the log if a map service with the WebOffice SOE enabled can be reached without logging in. Once this warning no longer appears in the log, the WebOffice output service is secured.
If the publisher user for an ArcGIS Server is missing, WebOffice also reports this in the log ("No ArcGIS Publisher for SOE Output Service found").
|
Also fixed and a reason to update: The WebOffice SOE now processes incoming requests in such a way that references to external content embedded in them are no longer resolved. |
8.2 · Database connections with minimal rights
What it is about
In the application configuration, you define database connections through which WebOffice queries, searches or reads attribute data for reports. WebOffice logs in with the database account you enter in the connection. Whatever this account is allowed to do in the database, WebOffice can, in case of doubt, also do through this connection.
What we recommend
|
Use a database account with read-only rights for all database connections, limited to the tables and views actually needed — without write rights, without rights to create or change tables and without administration rights. |
WebOffice accesses these connections read-only. It does not need write rights for them — not even for editing geodata, because editing runs through ArcGIS Server.
•Do not use the schema owner and no database administration account.
•A dedicated account for WebOffice: Do not use the same account with which other applications or persons access the database. This has the same benefits as the dedicated user for the WebOffice output service above.
How to tell that it works
The queries, searches and reports of your projects work as before. An attempt to change a table directly in the database with this account is rejected by the database.
9 · Forwarding and retrieval through the WebOffice server
What it is about
WebOffice can forward users to other addresses and retrieve content from other servers itself and pass it on. This is needed, for example, to integrate business applications or to reach services that the browser cannot address directly.
Without restriction, the following applies: whoever triggers the call determines which address is retrieved. The setting in this section defines which targets are allowed.
What we recommend
In the application configuration under COMMON › SECURITY:
Setting |
Default value |
Recommendation |
|---|---|---|
check_open_redirects |
false — check is off |
true |
param_redirect_url_whitelist |
empty |
one entry per required service |
Agree the scope with your IT department.
How to proceed
You will find detailed step-by-step instructions, including how to determine the right values for your environment, in the chapter "Restricting Forwarding and Retrieval of External Content": → Restricting Forwarding and Retrieval of External Content
The most important points in brief — please read all four, they will save you failed attempts:
1 · Do not start with an empty list. If you set check_open_redirects to true and leave the allow list empty, only your own server is allowed. All external forwarding and retrieval then fails. Determine the required targets first.
2 · An entry covers server name and path. This is the most common stumbling block. The entry is checked against servername[:port]/path, in full — not only against the server name. An entry with only the server name therefore does not match:
|
Entry |
Matches gis.example.com/arcgis/rest/services/…? |
|---|---|---|
✗ |
gis\.example\.com |
no — the path is missing |
✓ |
gis\.example\.com(:443)?/arcgis/.* |
yes |
The scheme (https://) and the part after the question mark do not belong in the entry.
3 · Every entry must start with a real server name. Entries such as .*\.example\.com/.* or 10\..* do not work as expected and trigger a warning in the log at startup. Write one entry per service with the complete server name.
4 · Simple regular expressions apply. A dot in a server name is written as \., .* stands for "any remainder". Nested special constructs known from some programming languages (such as "lookarounds" or back-references) are not supported here. You do not need them for normal cases either.
What can go wrong
Targets on the same server are always allowed — regardless of port and scheme. This includes other services running on the same server under a different port. Keep this in mind if more than WebOffice runs on this machine.
Business applications integrated with relative addresses. If you have integrated GEONIS or WebGEN with relative addresses, check these workflows particularly carefully after the change — they were affected by this setting in older versions.
Services with credentials. If you have configured WMS services with user name and password, their servers must be in the allow list.
How to tell that it works
Rejected targets appear in the log with the message "Redirect URL is not allowed" and the affected address. This is also how you determine missing entries: enable the check, run through the workflows, evaluate the log, add missing targets.
In addition, WebOffice warns at startup if the check is switched off or if the allow list permits everything.
Esri Resource Proxy: "Endpoint Restrictions"
The Esri Resource Proxy is a supplied component that passes requests on to map services. You maintain its configuration in WebOffice Author under WebOffice › Esri Resource Proxy Configuration.
|
Keep the "Endpoint Restrictions" setting enabled (default). It restricts forwarding to the services of your projects. When switched off, this restriction is lifted — this is not recommended for production use. |
10 · Passing the user context on to business applications
What it is about
WebOffice can forward users to business applications and pass on information about the logged-in user — so that the business application knows who is coming. Depending on the configuration, this is the login credentials, a stored additional account or a WebOffice token.
This information is worth protecting. It should arrive exactly at the application it is intended for — and nowhere else.
What we recommend
1 · Only via HTTPS. Check the addresses of your business applications and tools to make sure they contain https:// and not http://. With unencrypted transmission, the user context can be read on the way. Depending on the place, the relevant setting is called externappurl.
2 · Only to the configured address. Credentials and tokens are only passed on to the address stored in the configuration — not to an address passed in the call. Keep it that way when you adapt integrations.
3 · Configure sparingly. Only pass on the user context where the business application actually evaluates it.
How to tell that it works
If a forwarding is carried out without user context because the address does not match the configured one, you will find a corresponding note in the log or in the response header X-WebOffice-Notice.
What it is about
A Content Security Policy — usually called CSP — is a list of rules that you give to the browser: from which sources it may load scripts, images, fonts and style sheets. If a page unexpectedly loads something from elsewhere, the browser blocks it.
This is the most effective single measure against injected malicious code in the browser. But it is also the one where something breaks most easily — because every source you forget is blocked.
The setting is called CSP_DIRECTIVES and is located in the application configuration under COMMON › SECURITY.
What we recommend
|
Enable the Content Security Policy and keep the list of allowed sources per rule as short as possible. The easiest way to start: Add the CSP_DIRECTIVES node without content. The supplied default policy then applies. Without this node, WebOffice sends no CSP — not recommended for production use. |
|
For context, openly and honestly: A very strict policy would exclude the browser instructions unsafe-inline and unsafe-eval. This is not possible with today's WebOffice clients — the clients WebOffice core, WebOffice flex and WebOffice html require these instructions, and the default policy therefore contains them. "CSP enabled, source lists narrow" is therefore the achievable and sensible goal. |
How to proceed
If you want to go beyond the default policy, add individual rules:
<COMMON>
<SECURITY>
<CSP_DIRECTIVES>
<CSP_DIRECTIVE directive_type="connect-src"
directive_value="'self' https://gis.example.com"/>
</CSP_DIRECTIVES>
</SECURITY>
</COMMON>
Then reload the instance and check in the browser (F12 › Network › response header Content-Security-Policy).
|
The most important rule to remember: A rule that you specify yourself completely replaces the supplied value of this rule — it does not add to it. If you set connect-src, you must include 'self' yourself, otherwise the page can no longer talk to its own server. |
Rules you can set: default-src, script-src, worker-src, style-src, object-src, img-src, media-src, font-src, connect-src, frame-src, form-action.
Not configurable through WebOffice: frame-ancestors, base-uri and the reporting rules report-uri/report-to. For frame-ancestors, see Section 5 — you set it on the reverse proxy.
What can go wrong
There is no trial mode. Some systems offer a mode in which violations are only reported but not blocked ("Report-Only"). WebOffice cannot do this. Therefore test changes on a test system.
These sources are frequently forgotten:
•connect-src must contain all service servers the map talks to: ArcGIS Server, portal, geocoding service, basemaps.
•External business applications in a frame need frame-src.
•Embedded third-party scripts, for example from a public script repository, need script-src.
What it is about
In query results, map tips and labels, WebOffice displays attribute values from your data. If these values are treated as HTML, external code can be brought into the page through them — for example if an attribute value comes from a source you do not control.
What we recommend
|
Leave the client setting result.allow.html at false. Attribute values are then displayed as text. |
Since WebOffice 10.9 R5, false is already the default value. This section is aimed at you if you once set the value to true — for example to display links in results. In that case, check whether you still need it.
|
Another reason to stay up to date: In current versions, further places in the clients and in the MapWidget where values from services and data are displayed have been secured. You do not need to configure anything for this. |
13 · External services: OGC and services added by users
13.1 · OGC services
What it is about
OGC services such as WMS and WFS deliver their description as XML. Such an XML can contain a reference to an external definition file. If this reference is resolved, your server retrieves an external address.
What we recommend
|
Enable the check. The setting OGC_DTD_URL_WHITELIST has the attribute enabled, and its default value is false — so the check is off. Set enabled="true". You can leave the supplied list of allowed addresses (urls_csv) unchanged. |
You will find the setting in the application configuration under COMMON › SECURITY › UNTRUSTED_SITES. Older configurations sometimes have it under WEBGIS; it is effective there too. Enter it in one place only.
Remove parameters you do not need from OGC_PARAMETER_WHITELIST. This list defines which parameters are passed on to OGC services. The default value also contains parameters for credentials and tokens. Remove what you do not need.
Change service passwords regularly. If you have integrated WMS services with credentials, include these passwords in your normal rotation cycle.
13.2 · "Add WMS" and "Add ArcGIS Service" tools
What it is about
With these tools, users can enter a service address themselves and load the service into the map. WebOffice then retrieves the service from the specified server. Without restriction, any address is allowed.
What we recommend
|
In projects in which users may add services freely, enter the servers that are actually needed. Agree the scope with your IT department. |
How to proceed
In WebOffice Author, set the property "Allowed servers for entered services" for the "Add WMS" or "Add ArcGIS Service" tool. Separate multiple entries with a comma, semicolon or space.
Notation |
Meaning |
|---|---|
lfu.bayern.de |
exactly this server |
*.bayern.de |
all servers below bayern.de — not bayern.de itself |
Without scheme, without port, without path. You can enter internal servers, such as a geoportal in your own network, in the same way.
Test afterwards: Reload the project, add a service from a listed server (must work) and one from a server that is not listed (must be rejected with a message).
What can go wrong
•If catalog search is enabled, the servers of the services found there must also be entered.
•Some WMS services refer to further servers for map images or legends in their description. These also need an entry.
•Saved map states containing services from servers that are not listed are opened without these services.
The setting also applies to the start parameter service_url and to catalog search results. Services from the tool's predefined list are always allowed.
|
Note: An entry allows the server. Whether this server is trustworthy is up to you to judge. |
How to tell that it works
The user receives a clear message, and the log contains a warning with the server name.
14 · Expose only what is needed
14.1 · Restricting administration interfaces to the internal network
What it is about
SynAdmin, WebOffice Author Standalone and the UserManagement Admin Web are administration tools. They do not belong on the internet.
|
Important for context: SynAdmin and UserManagement Admin Web do not offer two-factor authentication. Restricting them to the internal network is therefore not just an additional safeguard but the essential protective measure for these interfaces. |
What we recommend
On the reverse proxy or the web application firewall, restrict these paths to internal address ranges:
/synadmin
/synmonitor
/client/admin.jsp
/client_workspace/JSXAPPS/synadmin/…
/client_preview/…
/pub/admin_pages/…
/docs/rest/…
/client_preview/ is the preview page that SynAdmin opens to check services. It only works with a SynAdmin login and is not needed by any client.
|
Do not block /rest/* across the board. Public clients need /rest. Being too coarse here will bring the application to a halt. |
Example for nginx:
geo $wo_admin_allowed {
default 0;
10.0.0.0/8 1;
192.168.0.0/16 1;
172.16.0.0/12 1;
}
location ~* ^/WebOffice/(synadmin|synmonitor|client/admin\.jsp|client_workspace/JSXAPPS/synadmin/|client_preview/|pub/admin_pages/|docs/rest/) {
if ($wo_admin_allowed = 0) { return 403; }
proxy_pass http://weboffice_backend;
}
For the Apache HTTP Server, use the same path expression in a LocationMatch block with Require ip ….
|
Two things you must adapt: 1 · The address ranges. The ones above are examples. Enter your actual internal ranges. 2 · The detection of the real client address — this is not optional fine-tuning. If there is another proxy or a load balancer in front of this proxy, geo only sees its address. That address is in the internal range — and everything would be allowed, even though the rule looks correct on paper. Therefore configure set_real_ip_from and real_ip_header so that the original client address is evaluated. Then check from outside that access is actually denied. The path /WebOffice/ is an example. Your context path may differ. |
UserManagement Admin Web: separate application, same rule
What it is about. With the VertiGIS UserManagement Admin Web (UM Admin Web for short), you manage users, groups and permissions of the WebOffice user management. It is a separate web application on IIS, not part of the WebOffice application on Tomcat — the proxy rules above therefore do not cover it automatically. As long as you do not use self-registration, UM Admin Web is purely an administration tool for WebOffice administrators. Nobody else needs access to it — not even from the internal network.
What we recommend.
•Do not make it reachable from the internet. No publication via the reverse proxy, no port forwarding.
•Internally, too, only for administrators. Run UM Admin Web in a network segment that is open only to the workstations of the WebOffice administrators — such as an administration VLAN, a jump host or a dedicated VPN group. Where a separate segment is not possible, a firewall rule or the IIS feature "IP and Domain Restrictions" does the same. Regular WebOffice users cannot reach UM Admin Web at all.
•Exception: self-registration. If you use self-registration (SelfRegistrations Enabled="true" in web.config), users must be able to reach the registration pages. In that case, allow only these pages — they all start with Registration (Registration.aspx, RegistrationActivation.aspx, RegistrationReset.aspx, RegistrationResetActivation.aspx, RegistrationUpdate.aspx) — and keep all other pages of the application restricted to the administrators' network. The easiest way to do this is a path rule on the reverse proxy or the IIS "IP and Domain Restrictions" at folder and file level.
How to proceed (only with self-registration; otherwise the entire application stays internal):
# Registration pages for users, everything else only from the administrators' network
location ~* ^/UserManagementAdminWeb/Registration[A-Za-z]*\.aspx$ {
proxy_pass http://um_adminweb_backend;
}
location /UserManagementAdminWeb/ {
if ($wo_admin_allowed = 0) { return 403; }
proxy_pass http://um_adminweb_backend;
}
The variable $wo_admin_allowed comes from the example above; if you want to define the two differently, enter the addresses of the administrators' network there instead of the internal ranges. For the Apache HTTP Server, use two LocationMatch blocks with Require all granted for the registration pages and Require ip … for the rest. The path /UserManagementAdminWeb/ is the default name of the IIS application; your name may differ.
How to tell that it works. From a workstation outside the administrators' network, calling the UM Admin Web login page is denied. If you use self-registration, only the registration page loads from there — check that it is displayed completely, including style sheets and images; allow any missing static files as well.
14.2 · Further interfaces
Principle: Only expose externally what the client you use actually needs.
Restrict to internal:
•Authoring interface /rest/api/webauthor/…
•Session and administration endpoints under /rest, such as /rest/websessions…
•Customer-specific additional services, such as GeoOffice Online
•/synmonitor
Check and only leave open if needed:
•/synsopproxy, /synredirect, /synreentry — otherwise restrict them with the allow list from Section 9
•Routes of older clients: /synserver, /syngui, /syntile, /synservice* — only if these clients are used publicly in your organization
|
Be careful with /synsopproxy and /synredirect: If these paths are blocked at the perimeter, integrations of GEONIS and WebGEN break. Check beforehand whether you use these business applications. Instead of blocking, the allow list from Section 9 is the appropriate means here. |
Do not block: /rest/* as a whole, login and SSO (/auth/*) and the /syn* routes that you use.
Also restrict project monitoring (/synmonitor) in the configuration. In the application configuration under BATCHADMIN_USER:
Setting |
Default value |
Recommendation |
|---|---|---|
"Allowed addresses for session validation" (validate_session_allowed_addresses) |
empty |
the addresses of the servers that use this check (e.g. GEONIS Server); if nobody uses it: 127.0.0.1 |
"Get project status without login?" (allow_get_project_status_without_login) |
false |
leave at false |
As long as the first setting is empty, WebOffice writes a note to the log at startup.
14.3 · Removing unused sample content
What it is about
WebOffice ships with samples, templates and demo pages — among others in pub/custom_pages/ and pub/custom_tools/. They are intended for development, integration and evaluation, not for production use.
What we recommend
|
Remove sample content that you do not use. The less your installation offers externally, the less needs to be maintained. |
Especially pages that forward: Several sample pages forward users to an address passed in the call. Only use such pages if you really need them, and remove the others.
Do not adapt supplied pages directly. A collective patch or an update overwrites the supplied files under pub. Where a page needs settings, they belong in the application configuration.
If you use a sample tool in production that requires an API key: As of WebOffice 10.9 R5, store the key in the application configuration (CUSTOM_TOOL_API_KEYS), not in the supplied file. Otherwise, it will be gone after the next update — and it is also better protected there.
How to proceed
1.Determine which sample pages and tools are referenced in your projects.
2.Remove unused samples from the deployment.
3.Test productive workflows.
4.Check again after every update — a collective patch or an update rolls out removed samples again.
Helper pages you can remove in production
In addition to the samples under pub, WebOffice ships with some helper and test pages that are not needed during operation:
Path |
Purpose |
What is lost when removed |
|---|---|---|
client_preview/ (entire folder) |
Preview page that SynAdmin opens to check a service; only usable with a SynAdmin login |
the "Preview" button in SynAdmin no longer works; clients and projects are not affected |
user-token-helper.jsp (root directory) |
Helper page for development |
nothing |
testextapplication.jsp, testextmodule.jsp, testextresult.jsp, testextcall.htm (root directory) |
Test pages you can use to check which values WebOffice passes when calling a business application |
the test option; your own integrations are not affected |
For testing purposes, the test pages display the values passed, including headers and cookies. Use them on a test system and remove them on production systems.
If you want to keep client_preview/, restrict the path to the internal network as described in Section 14.1.
WebOffice Extensions: The WebOffice Extensions setup contains a test client (WebOffice.Extensions.Testclient.exe). It is intended for setup and troubleshooting. You do not need it on production servers.
What you must not remove
File |
Purpose |
|---|---|
externalcall.jsp |
"GeoWebExternalCall" entry point |
safeextcall.jsp |
Helper page for forwarding |
SSO pages (Shibboleth, PVP) |
can only be removed if you do not use SSO |
Pages of the WebOffice html client |
can only be removed if you do not use this client |
In the root directory, only remove pages that are clearly marked as test or demo. If in doubt, ask VertiGIS Support — that is quicker than troubleshooting after deleting a file.
14.4 · Excluding search engines from the application (robots.txt)
What it is about
If your WebOffice installation is reachable from the internet, search engine crawlers will find it too — whether you want that or not. An interactive map application, however, has no content that should sensibly be indexed. Every call by a crawler behaves like a perfectly normal page call, including login and session setup.
robots.txt is a text file with which you tell cooperative crawlers (Google, Bing and others) which addresses they should not call.
|
Good to know: robots.txt is only an instruction to well-behaved crawlers — not access control. Anyone who knows the address and does not comply is not locked out by it. It therefore does not replace any of the other measures in this article, but it is a sensible addition for everything that is publicly reachable. |
A technical detail you need to know: Crawlers retrieve robots.txt only at https://<your server>/robots.txt — directly below the server name, regardless of the path under which WebOffice itself runs (e.g. /WebOffice). A file that you place inside the WebOffice application is therefore never found and has no effect. It must be on the upstream web server — in most WebOffice installations, this is IIS (Apache Tomcat runs behind it via an Apache Tomcat Connector, e.g. the ISAPI Redirector). If your installation is also on the internet, there is often a web application firewall or reverse proxy in front of it — the same applies there.
What we recommend
|
Place a file with the following content at https://<your server>/robots.txt. As a rule, there is nothing in a WebOffice installation that should be indexed: |
User-agent: *
Disallow: /
If another application that should be found — such as your own portal page — runs under the same server name, restrict the exclusion to the WebOffice paths:
User-agent: *
Disallow: /WebOffice/
Disallow: /WebOffice_flex/
Adapt the paths to the context paths you actually use.
How to proceed
With IIS in front of Apache Tomcat (the most common setup):
1.Place the file robots.txt in the physical root directory of the IIS website — not in the directory of the Tomcat web application.
2.Check whether the Apache Tomcat Connector forwards all requests to Tomcat without exception, including those without a matching context path. If that is the case, IIS never sees the file because the request is forwarded immediately. In this case, explicitly exclude /robots.txt from forwarding. With the ISAPI Redirector, this is done in uriworkermap.properties with a separate line:
/robots.txt=!
The ! means "do not forward, IIS serves the file itself".
3.Then briefly restart the IIS application pool if the change does not take effect immediately.
With an additional reverse proxy or WAF in front (publicly reachable installations): Also place the same file on the upstream server — with nginx, for example, via a separate rule that serves the file directly without passing it on to IIS/Tomcat:
location = /robots.txt {
root /var/www/static;
}
What can go wrong
Disallow: / really excludes everything under this server name. If you also have pages there that should be found, use the path-based variant above instead of the general one.
The file has no effect if the connector takes it along. After setting it up, check that the content of your file is actually delivered — not the WebOffice login page and no HTTP error.
Addresses that are already indexed do not disappear immediately. Search engines continue to visit known addresses for some time and only take robots.txt into account from the next visit. Expect days to weeks until older entries disappear from the search index.
How to tell that it works
Call https://<your server>/robots.txt in the browser or with curl. The content of your file must appear as plain text — not the WebOffice login page and no HTTP error.
The column "Agree with IT" marks the measures that affect the network or the login.
✓ |
Measure |
Where |
Default |
Recommendation |
Agree with IT |
|---|---|---|---|---|---|
☐ |
Version in the product lifecycle, patched regularly |
WebOffice, Java, Tomcat |
— |
ongoing, with the patch and update scripts |
— |
☐ |
WebOffice output service (SynOutputService, with WebOffice SOE) secured |
ArcGIS Server |
— |
logged-in users only |
yes |
☐ |
Standalone: dedicated publisher user only for WebOffice, output service private without allowed roles |
ArcGIS Server Manager, application configuration |
— |
publisher user stored |
yes |
☐ |
Federated server: output service shared only with the WebOffice users' group, no shared account in the project |
Portal, application configuration |
— |
shared with the group only |
yes |
☐ |
Database accounts with minimal rights |
Database / connections in the application configuration |
— |
read-only; not the schema owner |
yes |
☐ |
Administration interfaces internal only |
Reverse proxy / WAF |
open |
internal ranges |
yes |
☐ |
UserManagement Admin Web for administrators only |
Network segment / firewall / IIS |
open |
administrators' network; with self-registration only Registration*.aspx public |
yes |
☐ |
Evaluate the real client address on the proxy |
Reverse proxy |
— |
set_real_ip_from |
yes |
☐ |
HTTPS only |
Reverse proxy |
— |
exclusively |
— |
☐ |
HSTS after switching to HTTPS |
Reverse proxy |
— |
short max-age, then increase |
yes |
☐ |
Cookies Secure + HttpOnly |
Tomcat |
— |
always |
— |
☐ |
Cookie SameSite |
Tomcat, conf/context.xml |
not set |
Lax — not Strict; None only with Secure |
yes |
☐ |
Tomcat error pages without version information |
conf/server.xml, ErrorReportValve |
version visible |
showServerInfo="false", showReport="false" |
— |
☐ |
Embedding via frame-ancestors |
Reverse proxy |
— |
allow list |
yes |
☐ |
Content Security Policy enabled |
SECURITY/CSP_DIRECTIVES |
not set |
add the node |
yes |
☐ |
Check redirects |
SECURITY@check_open_redirects |
false |
true |
yes |
☐ |
Allowed targets |
SECURITY@param_redirect_url_whitelist |
empty |
one entry per service |
yes |
☐ |
XSS exceptions |
SECURITY@param_xss_whitelist |
6 entries |
do not shorten, only extend after assessment |
yes |
☐ |
Session check |
SECURITY@check_session_spoofing |
false |
true |
yes |
☐ |
Session not in the address bar |
login_by_xmlhttprequest |
— |
enable |
— |
☐ |
LDAP encrypted |
use_secure_connection |
false |
true |
— |
☐ |
Check external definition files of OGC services |
SECURITY/UNTRUSTED_SITES/OGC_DTD_URL_WHITELIST@enabled |
false |
true |
— |
☐ |
Restrict project monitoring |
BATCHADMIN_USER@validate_session_allowed_addresses |
empty |
server addresses or 127.0.0.1 |
yes |
☐ |
Reduce OGC parameters |
OGC_PARAMETER_WHITELIST |
with credentials |
remove what is not needed |
yes |
☐ |
Endpoint Restrictions |
WebOffice Author |
enabled |
keep enabled |
— |
☐ |
Allowed servers when adding services |
Tool property |
empty = everything |
enter the required ones |
yes |
☐ |
Results as text |
result.allow.html |
false |
false |
— |
☐ |
Query string out of access logs |
Tomcat / IIS |
included |
remove |
— |
☐ |
Access to logs restricted |
File system |
— |
operations only |
yes |
☐ |
User context via HTTPS only |
externappurl |
— |
https:// |
— |
☐ |
Unused samples removed |
Deployment |
supplied |
remove |
— |
☐ |
Helper and test pages (client_preview/, user-token-helper.jsp, testext*) |
Deployment |
supplied |
remove or internal only |
— |
☐ |
API keys in the configuration |
Application configuration |
in the file |
move to the configuration |
— |
☐ |
robots.txt if reachable from the internet |
Upstream web server (IIS/reverse proxy) |
none |
Disallow: / or path-based |
— |
16 · If you would like support
You can implement all of this yourself. Align it with your system landscape and your IT security requirements — ideally together with your IT department or your CISO.
If you would like support, for example in assessing your environment, choosing suitable values or implementing firewall and network rules, our colleagues at VertiGIS Professional Services will be happy to help.
Please note that such individual consulting and implementation support goes beyond standard technical support and is provided as a separate service. You can read what standard support covers here: → Description of Services for Standard Technical Support