Why is PasswordBox sealed in Silverlight?

A simple question, but google has no answer for that!
Today I click on the wall because the PasswordBox in Silverlight is sealed. I have no idea why they are doing this. Does anyone have an idea?

+4
source share
2 answers

PasswordBox is not just sealed in Silverlight, but also WPF. According to the Silverlight team, it is sealed for security reasons , but they don’t mention what the problems are.

I don’t see how any of the vulnerabilities mentioned here is valid, since as a developer you have full access to the entered password, which you can do regardless of what you want with.

+4
source

Because if you can subclass it, you can introduce vulnerabilities into it.

Some vulnerabilities that can be introduced:

  • Access to protected members.
  • Creation of special accessories for protected .
  • Inclusion of a third party - someone else will subclass your class to get a password.
+8
source

All Articles