# Security

**URL:** https://community.modx.com/c/security/6.md

[Latest](https://community.modx.com/latest.md) · [Categories](https://community.modx.com/categories.md) · [Tags](https://community.modx.com/tags.md)

---

## [About the Security category](https://community.modx.com/t/about-the-security-category/16)

<div class="topic-metadata">

**Author:** [@rthrash](https://community.modx.com/u/rthrash)\
**Replies:** 0

</div>

All things related to Security—but no security reports—including hack remediation, server best practices, WAFs, and more. To report a specific security issue email security@modx.com.

---

## [Is ModSecurity necessary with MODX?](https://community.modx.com/t/is-modsecurity-necessary-with-modx/8966)

<div class="topic-metadata">

**Author:** [@snowcreative](https://community.modx.com/u/snowcreative)\
**Replies:** 1\
**Last updated:** [January 10, 2026, 6:56pm UTC](https://community.modx.com/t/is-modsecurity-necessary-with-modx/8966 "2026-01-10T18:56:48Z")

</div>

Some years ago, I got in the habit of disabling modSecurity on my MODX sites. It frequently caused issues saving content using WYSIWYG editors like tinyMCE, and MODX’s security is so good that I never felt the need for m…

---

## [Page Accessible Only via Direct Link (No Navigation, No LogIn)](https://community.modx.com/t/page-accessible-only-via-direct-link-no-navigation-no-login/8720)

<div class="topic-metadata">

**Author:** [@Coffeebeforechaos](https://community.modx.com/u/Coffeebeforechaos)\
**Replies:** 3\
**Last updated:** [August 14, 2025, 1:43pm UTC](https://community.modx.com/t/page-accessible-only-via-direct-link-no-navigation-no-login/8720 "2025-08-14T13:43:03Z")

</div>

Summary Hi everyone, I’m new to the community. I want to create a page that is only accessible via direct link. The page should not be shown in navigation and not indexed by search engines. Users should not need to log i…

---

## [Passwordless Login 2.X MODX](https://community.modx.com/t/passwordless-login-2-x-modx/2684)

<div class="topic-metadata">

**Author:** [@clutchmarketing](https://community.modx.com/u/clutchmarketing)\
**Replies:** 3\
**Last updated:** [April 16, 2025, 2:37pm UTC](https://community.modx.com/t/passwordless-login-2-x-modx/2684 "2025-04-16T14:37:30Z")

</div>

I see in the MODX3 documentation that there will be an option to allow for passwordless logins. That is great, but is there a way to allow for this in MODX 2.X using the Login snippet?

---

## [How to set security headers in MODX?](https://community.modx.com/t/how-to-set-security-headers-in-modx/8482)

<div class="topic-metadata">

**Author:** [@snowcreative](https://community.modx.com/u/snowcreative)\
**Replies:** 5\
**Last updated:** [April 4, 2025, 7:17pm UTC](https://community.modx.com/t/how-to-set-security-headers-in-modx/8482 "2025-04-04T19:17:04Z")

</div>

What exactly does the system setting “set\_header” enable? Which exact headers are sent? Is there some way to edit them? I’d like to add security headers.

---

## [MODX 3.0.4 .htaccess Hack?](https://community.modx.com/t/modx-3-0-4-htaccess-hack/8321)

<div class="topic-metadata">

**Author:** [@jenswittmann](https://community.modx.com/u/jenswittmann)\
**Replies:** 2\
**Last updated:** [February 14, 2025, 12:53pm UTC](https://community.modx.com/t/modx-3-0-4-htaccess-hack/8321 "2025-02-14T12:53:42Z")

</div>

Today I found a security problem on a MODX 3.0.4 installation. The .htaccess file had been changed in this way: RewriteEngine On RewriteBase / RewriteCond %{REQUEST\_URI} !^/\\.well-known/acme-challenge/\[0-9a-zA-Z\_-\]+$ Re…

---

## [Giving user group exclusive editorial access to a resource](https://community.modx.com/t/giving-user-group-exclusive-editorial-access-to-a-resource/8203)

<div class="topic-metadata">

**Author:** [@kings\_admin](https://community.modx.com/u/kings_admin)\
**Replies:** 5\
**Last updated:** [February 14, 2025, 12:37am UTC](https://community.modx.com/t/giving-user-group-exclusive-editorial-access-to-a-resource/8203 "2025-02-14T00:37:55Z")

</div>

Hello I hope someone can help me. We need to limit access to our payment page to one login as we want to reduce risk of hacks coming via email gaining access to one of our editors’ logins and changing the bank account d…

---

## [Can't protect a page against public access](https://community.modx.com/t/cant-protect-a-page-against-public-access/8250)

<div class="topic-metadata">

**Author:** [@videoschlumpf](https://community.modx.com/u/videoschlumpf)\
**Replies:** 28\
**Last updated:** [January 20, 2025, 7:26pm UTC](https://community.modx.com/t/cant-protect-a-page-against-public-access/8250 "2025-01-20T19:26:06Z")

</div>

Hi all and a happy and successful 2025! I have a site with version 3.1.0 and only a single context (web). There is a page, not visible in the menu, not reachable via a link, not listed in the sitemap. You can reach it o…

---

## [How to get a parameter from an URL safely](https://community.modx.com/t/how-to-get-a-parameter-from-an-url-safely/7592)

<div class="topic-metadata">

**Author:** [@esger](https://community.modx.com/u/esger)\
**Replies:** 2\
**Last updated:** [March 4, 2024, 2:17pm UTC](https://community.modx.com/t/how-to-get-a-parameter-from-an-url-safely/7592 "2024-03-04T14:17:46Z")

</div>

I have this snippet to get a parameter from the url: return isset($\_GET\[$field\]) ? $\_GET\[$field\] : ''; But this seems to allow for XSS injection. I’m loading a page from ModX in an iFrame (within an application) using…

---

## [Security implications of a (partially) exposed \`core\`](https://community.modx.com/t/security-implications-of-a-partially-exposed-core/6791)

<div class="topic-metadata">

**Author:** [@Banana\_54](https://community.modx.com/u/Banana_54)\
**Replies:** 6\
**Last updated:** [February 6, 2024, 5:58pm UTC](https://community.modx.com/t/security-implications-of-a-partially-exposed-core/6791 "2024-02-06T17:58:21Z")

</div>

Hi, I’m doing a black-box testing of a customer site running MODX, and they didn’t lock their core/ folder with a htaccess file (in fact, core/ht.access is still accessible). Access to some files is denied, but some no…

---

## [Using NAS for hosting websites](https://community.modx.com/t/using-nas-for-hosting-websites/6682)

<div class="topic-metadata">

**Author:** [@Engraved](https://community.modx.com/u/Engraved)\
**Replies:** 3\
**Last updated:** [June 26, 2023, 11:29am UTC](https://community.modx.com/t/using-nas-for-hosting-websites/6682 "2023-06-26T11:29:43Z")

</div>

Hi, My question: Can you properly host a MODX website (or any web application in general) on a Synology NAS? And if not, what are the concerns/risks as why the answer would be no? Why the question? For my brother in …

---

## [SAML with Azure](https://community.modx.com/t/saml-with-azure/6024)

<div class="topic-metadata">

**Author:** [@brestellin](https://community.modx.com/u/brestellin)\
**Replies:** 0\
**Last updated:** [November 11, 2022, 3:31pm UTC](https://community.modx.com/t/saml-with-azure/6024 "2022-11-11T15:31:41Z")

</div>

Hello! Pretty simple question (maybe). I am trying to do some conditional access through Azure and I cannot find the Identifier ID or Reply URL. Can anyone point me in the right direction? Thanks!

---

## [MODX3: Resource Group Access Control Problem](https://community.modx.com/t/modx3-resource-group-access-control-problem/5699)

<div class="topic-metadata">

**Author:** [@fritzkola](https://community.modx.com/u/fritzkola)\
**Replies:** 2\
**Last updated:** [August 24, 2022, 5:25am UTC](https://community.modx.com/t/modx3-resource-group-access-control-problem/5699 "2022-08-24T05:25:34Z")

</div>

Hello, I have made a Resource Group and a User Group. In User Group I granted access to Resource Group. In Resources I have two Resources assign to Resource Group. In separate Browser I can view the Resources in Reso…

---

## [User can login but has elevated permission for a different group](https://community.modx.com/t/user-can-login-but-has-elevated-permission-for-a-different-group/4915)

<div class="topic-metadata">

**Author:** [@sean69](https://community.modx.com/u/sean69)\
**Replies:** 6\
**Last updated:** [February 1, 2022, 10:52pm UTC](https://community.modx.com/t/user-can-login-but-has-elevated-permission-for-a-different-group/4915 "2022-02-01T22:52:09Z")

</div>

This is driving me up the wall. It happens in my dev environment, but not production. I have 2 user groups (besides admin & anon) Staff & Customers both with matching resource group restrictions. If a customer from ei…

---

## [Enable Two-Factor Auth for Manager Login](https://community.modx.com/t/enable-two-factor-auth-for-manager-login/2112)

<div class="topic-metadata">

**Author:** [@mayhemchaos](https://community.modx.com/u/mayhemchaos)\
**Replies:** 5\
**Last updated:** [May 28, 2021, 10:31am UTC](https://community.modx.com/t/enable-two-factor-auth-for-manager-login/2112 "2021-05-28T10:31:19Z")

</div>

A Google search returned years-old forum posts with little direction on how to achieve this. We’re looking to have 2FA on the manager login screen. How is this enabled?

---

## [Hiding custom menu item for specific user group](https://community.modx.com/t/hiding-custom-menu-item-for-specific-user-group/4024)

<div class="topic-metadata">

**Author:** [@epifanios94](https://community.modx.com/u/epifanios94)\
**Replies:** 1\
**Last updated:** [May 11, 2021, 12:47pm UTC](https://community.modx.com/t/hiding-custom-menu-item-for-specific-user-group/4024 "2021-05-11T12:47:36Z")

</div>

I have 3 users groups for the modx manager: Administrator Member Editor And i created menu item with migxdb and i want to display only for Administrator and Member groups and hiding for Editor users. How can …

---

## [Clickjacking code](https://community.modx.com/t/clickjacking-code/3914)

<div class="topic-metadata">

**Author:** [@Ipixels](https://community.modx.com/u/Ipixels)\
**Replies:** 3\
**Last updated:** [April 12, 2021, 4:32pm UTC](https://community.modx.com/t/clickjacking-code/3914 "2021-04-12T16:32:15Z")

</div>

Hello. Google webmaster detected a malicious link (\[link\_removed\]). Perhaps this is clickjacking. The question is how to find and fix it?

---

## [Infected since Feb 2020](https://community.modx.com/t/infected-since-feb-2020/2985)

<div class="topic-metadata">

**Author:** [@elz064](https://community.modx.com/u/elz064)\
**Replies:** 15\
**Last updated:** [February 16, 2021, 5:54pm UTC](https://community.modx.com/t/infected-since-feb-2020/2985 "2021-02-16T17:54:35Z")

</div>

Hi, Just to inform. We have discovered yesterday after an imunifyAV scan over our website (vps Plesk at OVH) that the whole site was infected by something many index.php have been added in many directories and 3 lines…

---

## [MODX 2FA with phpCAS](https://community.modx.com/t/modx-2fa-with-phpcas/3020)

<div class="topic-metadata">

**Author:** [@marquez](https://community.modx.com/u/marquez)\
**Replies:** 1\
**Last updated:** [September 12, 2020, 6:17am UTC](https://community.modx.com/t/modx-2fa-with-phpcas/3020 "2020-09-12T06:17:25Z")

</div>

Does anyone know if 2 factor authentication in MODX can work with phpCAS? I’m supposed to enable this with my MODX server, but I’m unfamiliar with both of these and trying to get some ideas. Thank you, -Mark

---

## [Starting authenticated session in a different context](https://community.modx.com/t/starting-authenticated-session-in-a-different-context/3009)

<div class="topic-metadata">

**Author:** [@claytonk](https://community.modx.com/u/claytonk)\
**Replies:** 5\
**Last updated:** [September 11, 2020, 3:11pm UTC](https://community.modx.com/t/starting-authenticated-session-in-a-different-context/3009 "2020-09-11T15:11:15Z")

</div>

I had a script that was previously working (a year or two ago) that was able to receive a request in the web context and authenticate the user into a different context, then forward them to a restricted resource. Not sur…

---

## [MODX2 email-only login](https://community.modx.com/t/modx2-email-only-login/2889)

<div class="topic-metadata">

**Author:** [@thekraken](https://community.modx.com/u/thekraken)\
**Replies:** 4\
**Last updated:** [July 24, 2020, 10:53pm UTC](https://community.modx.com/t/modx2-email-only-login/2889 "2020-07-24T22:53:07Z")

</div>

Hi all, Hail marry here looking for a solution. I am looking to implement a frictionless login system in modx 2.x. I currently have a website with a free ‘members only’ area with 4000 members. I want to remove the pas…

---

## [Editors permisions driving me crazy](https://community.modx.com/t/editors-permisions-driving-me-crazy/2875)

<div class="topic-metadata">

**Author:** [@abramco](https://community.modx.com/u/abramco)\
**Replies:** 13\
**Last updated:** [July 22, 2020, 2:50pm UTC](https://community.modx.com/t/editors-permisions-driving-me-crazy/2875 "2020-07-22T14:50:46Z")

</div>

Hi. I’m turning crazy with mgr limited editors permisions. After adding all the site resources to a resource group called AllDocs and protecting it, I have put 2 of the resources (of type collection) (ex. News and Off…

---

## [Limited admin role](https://community.modx.com/t/limited-admin-role/2312)

<div class="topic-metadata">

**Author:** [@bobwal](https://community.modx.com/u/bobwal)\
**Replies:** 2\
**Last updated:** [February 28, 2020, 5:53pm UTC](https://community.modx.com/t/limited-admin-role/2312 "2020-02-28T17:53:43Z")

</div>

I need to create a role/policy which is essentially full admin but with protection to prevent my own admin account being editied or deleted and effectively blocking me out of the website. I’m familiar with setting up AC…

---

## [ACL Permissions | Control The Landing Page, or Limiting content displayed on the Welcome Page](https://community.modx.com/t/acl-permissions-control-the-landing-page-or-limiting-content-displayed-on-the-welcome-page/1980)

<div class="topic-metadata">

**Author:** [@mmcgee](https://community.modx.com/u/mmcgee)\
**Replies:** 5\
**Last updated:** [December 11, 2019, 6:08am UTC](https://community.modx.com/t/acl-permissions-control-the-landing-page-or-limiting-content-displayed-on-the-welcome-page/1980 "2019-12-11T06:08:03Z")

</div>

If I am restricting a user group to a very very limited amount of items they can access… is there a way to also limit what they see on the welcome page? Currently I have permissions working the way I want, but if I exclu…

---

## [Acces Policy / Roles](https://community.modx.com/t/acces-policy-roles/1841)

<div class="topic-metadata">

**Author:** [@leo\_wolff](https://community.modx.com/u/leo_wolff)\
**Replies:** 9\
**Last updated:** [November 26, 2019, 12:21pm UTC](https://community.modx.com/t/acces-policy-roles/1841 "2019-11-26T12:21:21Z")

</div>

I want to give the content manager limited acces. I followed the tutorial ‘giving a user manager access’ as I did many times before. As a content manager you ca only create, edit and delete resources and you only have a…

---

## [After cleaning up my hacked site all links go to "Not Found"](https://community.modx.com/t/after-cleaning-up-my-hacked-site-all-links-go-to-not-found/1560)

<div class="topic-metadata">

**Author:** [@telebube](https://community.modx.com/u/telebube)\
**Replies:** 9\
**Last updated:** [October 15, 2019, 3:45pm UTC](https://community.modx.com/t/after-cleaning-up-my-hacked-site-all-links-go-to-not-found/1560 "2019-10-15T15:45:40Z")

</div>

Hi there, my site has been hacked. I found a lot of files using https://forums.modx.com/thread/94643/how-to-clean-up-your-hacked-webspace and removed them. After cleaning everything up I have access to my starting page…

---

## [Security Question: When will phpmailer be updated in MOD 2.7.x?](https://community.modx.com/t/security-question-when-will-phpmailer-be-updated-in-mod-2-7-x/1281)

<div class="topic-metadata">

**Author:** [@phatphug](https://community.modx.com/u/phatphug)\
**Replies:** 6\
**Last updated:** [July 30, 2019, 8:39am UTC](https://community.modx.com/t/security-question-when-will-phpmailer-be-updated-in-mod-2-7-x/1281 "2019-07-30T08:39:20Z")

</div>

I’ve just reported this security issue by email. I noticed today that PHPMailer has had some security updates to address CVE-2018-19296. I can see this information by looking at the github releases page of PHPMailer. M…

---

## [404 Page Not Found](https://community.modx.com/t/404-page-not-found/1024)

<div class="topic-metadata">

**Author:** [@greg\_c1988](https://community.modx.com/u/greg_c1988)\
**Replies:** 21\
**Last updated:** [June 19, 2019, 5:01am UTC](https://community.modx.com/t/404-page-not-found/1024 "2019-06-19T05:01:44Z")

</div>

Hi guys, On older versions of modx, my website was hacked. It was restored, fixed and updated. Now, it is a 404 not found page, I restored it to what it was, but again, it is a 404. It updated to the latest version too…

---

## [PHP Malware Scanner and false positives](https://community.modx.com/t/php-malware-scanner-and-false-positives/871)

<div class="topic-metadata">

**Author:** [@jeffmiranda](https://community.modx.com/u/jeffmiranda)\
**Replies:** 11\
**Last updated:** [June 7, 2019, 3:19am UTC](https://community.modx.com/t/php-malware-scanner-and-false-positives/871 "2019-06-07T03:19:59Z")

</div>

My site is being continually infected and I’m trying to find the cause. I’ve been using PHP Malware Scanner which works great but it keeps saying that the following files are infected but I can’t seem to see anything out…

---

## [Prevent File Browsing](https://community.modx.com/t/prevent-file-browsing/764)

<div class="topic-metadata">

**Author:** [@terrybarth](https://community.modx.com/u/terrybarth)\
**Replies:** 6\
**Last updated:** [May 8, 2019, 10:45pm UTC](https://community.modx.com/t/prevent-file-browsing/764 "2019-05-08T22:45:29Z")

</div>

I’ve got some sites that allow file browsing of the /assets/ folder. I’ve got other sites that do not allow this and present a 403 error. I’ve been comparing the various sites and cannot determine what is different about…

[Next page](https://community.modx.com/c/security/6.md?page=1)
