# Creating new user (security issue)

**URL:** <https://community.auth0.com/t/creating-new-user-security-issue/92454>\
**Category:** Get Help\
**Tags:** post-user-registrati\
**Created:** [October 15, 2022, 4:27am UTC](https://community.auth0.com/t/creating-new-user-security-issue/92454 "2022-10-15T04:27:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sri1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sri1/32/33891_2.png) [@sri1](https://community.auth0.com/u/sri1)\
**Post date:** [October 15, 2022, 4:27am UTC](https://community.auth0.com/t/creating-new-user-security-issue/92454/1 "2022-10-15T04:27:56Z")

</div>

It looks like any one can create new user if they get hold of Client Id (easily available to public) using below code,  
axios.post(`https://${process.env.REACT_APP_AUTH0_DOMAIN}/dbconnections/signup`, formData ). Is there any way to restrict user creation?

Thank You  
Sri

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 27, 2022, 6:05pm UTC](https://community.auth0.com/t/creating-new-user-security-issue/92454/3 "2022-10-27T18:05:10Z")

</div>

Hi @sri1,

Welcome to the Auth0 Community!

Signup is an open endpoint and can’t require an authenticated user (they don’t exist yet).

If you want to disable signups, you can do so in the connection settings.

---

<div class="post-metadata">

**Author:** ![sri1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sri1/32/33891_2.png) [@sri1](https://community.auth0.com/u/sri1)\
**Post date:** [October 27, 2022, 7:04pm UTC](https://community.auth0.com/t/creating-new-user-security-issue/92454/4 "2022-10-27T19:04:42Z")

</div>

Thanks for reply @dan.woda,  
I understand there can not be an authenticated user for new Signup. There should be an option to set minimum security around the signup. example, give an option to set CORS sites so that other websites can not simply call the API and create users on Auth0. This will avoid DDoS kind of attacks.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 27, 2022, 9:27pm UTC](https://community.auth0.com/t/creating-new-user-security-issue/92454/5 "2022-10-27T21:27:35Z")

</div>

That would not prevent DDoS attacks. A cors policy is only in place for browsers and won’t prevent malicious requests from other servers.

If you want to set up some custom parameters of who can sign up for your app, you can use [Pre User Registration Flow](https://auth0.com/docs/customize/actions/flows-and-triggers/pre-user-registration-flow) Actions.

That endpoint also supports our [Bot Detection](https://auth0.com/docs/secure/attack-protection/bot-detection) features/CAPTCHA.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 10, 2022, 9:28pm UTC](https://community.auth0.com/t/creating-new-user-security-issue/92454/6 "2022-11-10T21:28:21Z")

</div>

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