Public client or Confidential client: should I generate a client secret?

I’ve read about this but I don’t fully understand how to choose.
I have two options:
Public client

"A native, browser or mobile-device app. Cognito API requests are made from user systems that are not trusted with a client secret.&qu… Continue reading Public client or Confidential client: should I generate a client secret?

Security in Angular: Addressing XSS Concerns with External Libraries and Interpolation

Introduction:
We heavily use external libraries, such as DataTables, in combination with interpolation. In Angular, we’ve identified two primary XSS prevention strategies:

Interpolation ({{ }})
Direct Sanitization with DomSanitizer.saniti… Continue reading Security in Angular: Addressing XSS Concerns with External Libraries and Interpolation

Best practice of x.509 client certificates accross multiple systems

I have several MongoDB’s where I use x.509 Certificates to Authenticate Clients
Let’s say I create certificate and user for admin:
subject: CN=admin
issuer: CN=MongoDB Issuing CA

-> db.createUser({user: "CN=admin"})

When I p… Continue reading Best practice of x.509 client certificates accross multiple systems

How does the MITM attack work when a client does not check the hostname vs the certificate? [duplicate]

One of the Paho MQTT client SSL options allows checking whether "a certificate matches the given host name.". If I enable this option then I cannot establish a TLS connection to MQTT using an IP address. In case it is relevant: t… Continue reading How does the MITM attack work when a client does not check the hostname vs the certificate? [duplicate]