If you write secure code, YSOD should not provide an opportunity for a hacker to crack your application. If, however, your code is unsafe, YSOD can provide the attacker with the necessary information to allow them to carry out their attack.
Say, for example, you wrote your own forum software. You checked a lot when the user writes messages to prevent XSS attacks, etc., but your check is wrong. If a hacker can call YSOD when they make a message, the specified stack trace can potentially show them cracks in your scan and use them to create XSS attacks or get member details or passwords, etc.
YSOD is not a threat in itself, but it can be a very useful way for a hacker to detect flaws in your application security.
Karl Nicoll
source share