Rule Definition
Without authentication enabled, malicious messages can be sent to queue for processing with the intent to attack.
Remediation
Either 'certificate' or 'WindowsDomain' binding must be used to enable authentication
Violation Code Sample
<bindings>
<netMsmqBinding>
<binding>
<security>
<transport msmqAuthenticationMode="None" />
</security>
</binding>
</netMsmqBinding>
</bindings>
Fixed Code Sample
<bindings>
<netMsmqBinding>
<binding>
<security>
<transport msmqAuthenticationMode="Certificate" />
</security>
</binding>
</netMsmqBinding>
</bindings>
_________________________________________________________________
<bindings>
<netMsmqBinding>
<binding>
<security>
<transport msmqAuthenticationMode="WindowsDomain" />
</security>
</binding>
</netMsmqBinding>
</bindings>
Reference
https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/securing-messages-using-transport-security
https://cwe.mitre.org/data/definitions/285.html
Related Technologies
Technical Criterion
Secure Coding - Weak Security Features
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.