Looking for the vulnerability index of Invicti's legacy products?
ASP.NET WCF replay attacks are not detected - Vulnerability Database

ASP.NET WCF replay attacks are not detected

Description

The application's WCF (Windows Communication Foundation) service has the detectReplays property set to false within the localServiceSettings configuration. This configuration disables replay attack detection, a security mechanism that prevents malicious actors from intercepting and retransmitting valid messages to the service. Without this protection, the service cannot distinguish between legitimate messages and replayed copies of previously captured communications.

Remediation

Enable message replay detection by setting the detectReplays property to true in the WCF service configuration. This should be configured within the localServiceSettings element of your service behavior configuration.

Update your Web.config or App.config file as follows:

<system.serviceModel>
  <behaviors>
    <serviceBehaviors>
      <behavior>
        <serviceSecurityAudit />
        <serviceMetadata />
        <serviceDebug />
      </behavior>
    </serviceBehaviors>
  </behaviors>
  <bindings>
    <customBinding>
      <binding>
        <security>
          <localServiceSettings detectReplays="true" />
        </security>
      </binding>
    </customBinding>
  </bindings>
</system.serviceModel>

After making this change, restart the application to ensure the configuration takes effect. Additionally, verify that your WCF binding supports security features and that message security or transport security with message credentials is properly configured.

Related Vulnerabilities