public void AddPossibleStoredVulnerability(IStoredVulnerabilityInfo vulnerabilityInfo)
 {
     if (PossibleInStoredVulns.All(x => (x.Message != vulnerabilityInfo.Message || (x.Message == vulnerabilityInfo.Message
                                         && x.PossibleStoredVuln.StorageOrigin != vulnerabilityInfo.PossibleStoredVuln.StorageOrigin)))
         && vulnerabilityInfo.PossibleStoredVuln.ICantFeelIt == IsItInYet.YesItsGoingIn)
     {
         PossibleInStoredVulns.Add(vulnerabilityInfo);
     }
     if (PossibleOutStoredVulns.All(x => (x.Message != vulnerabilityInfo.Message || (x.Message == vulnerabilityInfo.Message
                                          && x.PossibleStoredVuln.StorageOrigin != vulnerabilityInfo.PossibleStoredVuln.StorageOrigin)))
         && vulnerabilityInfo.PossibleStoredVuln.ICantFeelIt == IsItInYet.NoImPullingOut)
     {
         PossibleOutStoredVulns.Add(vulnerabilityInfo);
     }
 }
Ejemplo n.º 2
0
 public void AddPossibleStoredVulnerability(IStoredVulnerabilityInfo vulnerabilityInfo)
 {
     if (PossibleInStoredVulns.All(x => (x.Message != vulnerabilityInfo.Message || (x.Message == vulnerabilityInfo.Message &&
                                                                                    x.PossibleStoredVuln.StorageOrigin != vulnerabilityInfo.PossibleStoredVuln.StorageOrigin))) &&
         vulnerabilityInfo.PossibleStoredVuln.ICantFeelIt == IsItInYet.YesItsGoingIn)
     {
         PossibleInStoredVulns.Add(vulnerabilityInfo);
     }
     if (PossibleOutStoredVulns.All(x => (x.Message != vulnerabilityInfo.Message || (x.Message == vulnerabilityInfo.Message &&
                                                                                     x.PossibleStoredVuln.StorageOrigin != vulnerabilityInfo.PossibleStoredVuln.StorageOrigin))) &&
         vulnerabilityInfo.PossibleStoredVuln.ICantFeelIt == IsItInYet.NoImPullingOut)
     {
         PossibleOutStoredVulns.Add(vulnerabilityInfo);
     }
 }