# Regular Web Application - clientSecret dangers

**URL:** <https://community.auth0.com/t/regular-web-application-clientsecret-dangers/116408>\
**Category:** Get Help\
**Tags:** attack-protection, general-attack-protection\
**Created:** [September 16, 2023, 5:47pm UTC](https://community.auth0.com/t/regular-web-application-clientsecret-dangers/116408 "2023-09-16T17:47:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![toomuchtimeondocs](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/toomuchtimeondocs/32/50714_2.png) [@toomuchtimeondocs](https://community.auth0.com/u/toomuchtimeondocs)\
**Post date:** [September 16, 2023, 5:47pm UTC](https://community.auth0.com/t/regular-web-application-clientsecret-dangers/116408/1 "2023-09-16T17:47:53Z")

</div>

So, in M2M applications, it’s very easy to select scopes for the API and control, what can be done using clientId & clientSecret.

But what are the risks of leaked clientId & clientSecret in Regular Web Application?

1. Can someone realistically use id/secret form Regular Web App to login on someones account?
2. Can some use the any methods of Management API? ( i tried to get mgm token, but failed, so this is probably not possible)
3. What other actions are possible with leaked id/secret?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [September 19, 2023, 10:33pm UTC](https://community.auth0.com/t/regular-web-application-clientsecret-dangers/116408/3 "2023-09-19T22:33:20Z")

</div>

Hey there @toomuchtimeondocs !

> [@toomuchtimeondocs](#):
>
> But what are the risks of leaked clientId & clientSecret in Regular Web Application?

Because there is no user interaction, leaked M2M credentials (depending on what they are authorized for) could be used to create access tokens directly, whereas a Web app typically _does_ require user interaction and consent.

I think the primary concern with leaked Web app credentials could be the ability to impersonate your application resulting in potential access to resources. For example, **with the web app client secret a bad actor could impersonate your app, intercept an authorization code in an [authorization code flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow) and exchange it for tokens.**

Because the Web app credentials aren’t able to be authorized by the Management API, they wouldn’t be able to use any methods against it.

---

<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:** [October 3, 2023, 10:34pm UTC](https://community.auth0.com/t/regular-web-application-clientsecret-dangers/116408/4 "2023-10-03T22:34:07Z")

</div>

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