# Can post to /members/api/send-magic-link without integrityToken

**URL:** <https://forum.ghost.org/t/can-post-to-members-api-send-magic-link-without-integritytoken/63212>\
**Category:** Bugs\
**Created:** [June 28, 2026, 5:01pm UTC](https://forum.ghost.org/t/can-post-to-members-api-send-magic-link-without-integritytoken/63212 "2026-06-28T17:01:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![K-OSt8](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/k-ost8/32/40892_2.png) [@K-OSt8](https://forum.ghost.org/u/K-OSt8)\
**Post date:** [June 28, 2026, 5:01pm UTC](https://forum.ghost.org/t/can-post-to-members-api-send-magic-link-without-integritytoken/63212/1 "2026-06-28T17:01:14Z")

</div>

_Fill out the following bug report template with as much detail as possible!_

_Are you sure this is a bug?_ _If you just need help, post in the developer help category. If it’s a feature request, head to the ideas category._

* * *

**Issue Summary**

On my self-hosted Ghost I have suspicious member sing-ups. The logs indicate that the /members/api/send-magic-link got posted to without prior call to get the integrity token.

Indeed I can post to it with integrityToken payload set to null and get the email.

I expected the link sent to report error

**Steps to Reproduce**

1. Post like  
curl ‘[https://theescritos.tz/members/api/send-magic-link/](https://theescritos.tz/members/api/send-magic-link/)’  
–compressed  
-X POST  
-H ‘User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86\_64; rv:151.0) Gecko/20100101 Firefox/151.0’  
-H ‘Accept: _/_’  
-H ‘Accept-Language: de,en-US;q=0.9,en;q=0.8’  
-H ‘Accept-Encoding: gzip, deflate, br, zstd’  
-H ‘Referer: [https://theescritos.tz/](https://theescritos.tz/)’  
-H ‘Content-Type: application/json’  
-H ‘Origin: [https://theescritos.tz](https://theescritos.tz)’  
-H ‘Sec-GPC: 1’  
-H ‘Connection: keep-alive’  
-H ‘Cookie: \_ga\_7B8J6YSS1K=GS2.1.s1782648315$o1$g1$t1782648341$j34$l0$h0; \_ga=GA1.1.797046755.1782648315’  
-H ‘Sec-Fetch-Dest: empty’  
-H ‘Sec-Fetch-Mode: cors’  
-H ‘Sec-Fetch-Site: same-origin’  
-H ‘Priority: u=4’  
-H ‘Pragma: no-cache’  
-H ‘Cache-Control: no-cache’  
-H ‘TE: trailers’  
–data-raw ‘{“[email":"me@example.com](mailto:email%22:%22me@example.com)”,“emailType”:“subscribe”,“labels”:,“autoRedirect”:true,“urlHistory”:[{“path”:“/”,“time”:1782648314943,“referrerSource”:null,“referrerMedium”:null,“utmSource”:null,“utmMedium”:null,“utmCampaign”:null,“utmTerm”:null,“utmContent”:null,“referrerUrl”:null}],“integrityToken”:null}’
2. recieve email

* * *

## Setup information

**Ghost Version**

6.45.0

**Node.js Version**  
v22.23.1

**How did you install Ghost?**

docker-less

**Provide details of your host & operating system**

ubuntu 24.04 LTS

**Database type**  
_MySQL 9_

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [June 28, 2026, 6:39pm UTC](https://forum.ghost.org/t/can-post-to-members-api-send-magic-link-without-integritytoken/63212/2 "2026-06-28T18:39:54Z")

</div>

How fun − I just wrote about that earlier today:

> **[The fix that actually worked: enforce integrity tokens - How to stop spam...](https://www.magicpages.co/blog/how-to-stop-spam-signups-on-your-ghost-membership-site/#the-fix-that-actually-worked-enforce-integrity-tokens)**
>
> If bots are flooding your Ghost members list with fake signups – or worse, using your site to fire magic-link emails at strangers – the single most effective fix is to make Ghost reject signup requests that don't carry a valid integrity token, then...

If you’re using Docker, add that environment variable to your container:

```auto
verifyRequestIntegrity=true

```

That will enforce them and block all requests that don’t have it with a clean `400` error.

---

<div class="post-metadata">

**Author:** ![K-OSt8](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/k-ost8/32/40892_2.png) [@K-OSt8](https://forum.ghost.org/u/K-OSt8)\
**Post date:** [June 29, 2026, 1:11pm UTC](https://forum.ghost.org/t/can-post-to-members-api-send-magic-link-without-integritytoken/63212/3 "2026-06-29T13:11:31Z")

</div>

Thank you.

I must admit the missing integrity check is a minor problem for me.  
If the token can be access via a simple anonymous GET to a public API is just a minor complication for an attacker’s script.

And currently it seems to be a script POST-ing to the magic-link URL to trigger the e-mail confirmation. I assume as a GET to / and just the POST are logged for the same IP

I’m more worried that like 10s later a request to the sign-up URL is issued from a different IP  
This time more likely from a browser, as all resources of the Page including css, etc are requested.

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [June 29, 2026, 4:14pm UTC](https://forum.ghost.org/t/can-post-to-members-api-send-magic-link-without-integritytoken/63212/4 "2026-06-29T16:14:54Z")

</div>

Yeah, totally.

But the economics of spam work in your favour here. It is just a dumb `GET` request, but it does mean double the amount of requests now.

And as harsh as it sounds, spammers will likely focus on other Ghost sites that don’t force the integrity token.

Once I have forced them on Magic Pages they backed off within 1-2 days across 1,400 sites.

---

<div class="post-metadata">

**Author:** ![K-OSt8](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/k-ost8/32/40892_2.png) [@K-OSt8](https://forum.ghost.org/u/K-OSt8)\
**Post date:** [June 30, 2026, 9:57am UTC](https://forum.ghost.org/t/can-post-to-members-api-send-magic-link-without-integritytoken/63212/5 "2026-06-30T09:57:07Z")

</div>

thanks I am just not using docker for my deployment

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [June 30, 2026, 10:01am UTC](https://forum.ghost.org/t/can-post-to-members-api-send-magic-link-without-integritytoken/63212/6 "2026-06-30T10:01:42Z")

</div>

Yeah, but whichever way you configured Ghost, adding that configuration flag (either via the `config.production.json` or environment variables) will activate it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [September 28, 2026, 10:02am UTC](https://forum.ghost.org/t/can-post-to-members-api-send-magic-link-without-integritytoken/63212/7 "2026-09-28T10:02:09Z")

</div>

Closed on September 28, 2026, 10:02am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
