Question

A simple question, but google has no answer on that!
I'm hitting a wall today, because the PasswordBox in Silverlight is Sealed. I have no idea why they do that. Is somebody have an idea on that?

Was it helpful?

Solution

PasswordBox isn't just sealed in Silverlight, but also WPF. According to the Silverlight team it is sealed because of security concerns, but they don't mention what those concerns are.

I don't see how any of the vulnerabilities mentioned here are valid since as a developer you have full access to the typed in Password which you can do whatever you want with.

OTHER TIPS

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

Some vulnerabilities that might be introduced:

  1. Accessing protected members.
  2. Creating special accessors to protected members.
  3. 3rd Party Injection - someone else subclasses your class to get at the password.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top