WIACPSite theme 0.2.0-alpha.92
Türkçe

§14

Security rules

The validator (§8) closes the known escape routes; the following are rules the validator cannot catch and the theme author is responsible for.

  • A single data source: the theme only shows the variables the server gives. Do not read a value from the address bar, a data- attribute or another page with JavaScript and send it back to the server; the server already checks permission and ownership, the theme does not repeat it and must not try to bypass it.
  • Forms are core parts: print the forms that arrive as *_html (form_html, reply_html, password_html …) as they are. If you write your own form and post it to a core endpoint, you lose protections such as CSRF, captcha, honeypot, fill time, rate limiting and re-verification.
  • Links: external links with target="_blank" must carry rel="noopener". Use addresses that come from users (such as button_url) only in the form the server gives; the core filters them to https://, a site path or an in-page link.
  • Secret data does not arrive and must not: passwords, tokens, the full IBAN, card numbers, administrator notes and other clients' data are in no presenter. If you see such a field on a page, report it as a bug; do not try to mask it in the theme.
  • No external resources: serve fonts, images and scripts from the theme folder. External CDN addresses are blocked with CSP in "enforce" mode and carry visitor data to third parties. For analytics / marketing codes, Settings › SEO › Tracking codes is used (it depends on cookie consent).
  • Local storage: localStorage / sessionStorage are only for harmless values such as view preferences; no personal data is written.
  • Server headers: the core adds X-Content-Type-Options: nosniff, Referrer-Policy: strict-origin-when-cross-origin and framing protection to every HTML response; over HTTPS the session cookie is Secure, and it is always HttpOnly and SameSite=Lax. The theme does not touch these.