示例#1
0
 def test_INP32(self):
     process1 = Process("Process")
     process1.validatesInput = False
     process1.sanitizesInput = False
     process1.encodesOutput = False
     threat = threats["INP32"]
     self.assertTrue(threat.apply(process1))
示例#2
0
 def test_INP32(self):
     process1 = Process("Process")
     process1.validatesInput = False
     process1.sanitizesInput = False
     process1.encodesOutput = False
     ThreatObj = Threat(
         next(item for item in threats_json if item["SID"] == "INP32"))
     self.assertTrue(ThreatObj.apply(process1))
示例#3
0
 def test_INP29(self):
     web = Server("Web Server")
     process1 = Process("Process")
     web.validatesInput = False
     web.sanitizesInput = False
     web.encodesOutput = False
     process1.validatesInput = False
     process1.sanitizesInput = False
     process1.encodesOutput = False
     threat = threats["INP29"]
     self.assertTrue(threat.apply(process1))
     self.assertTrue(threat.apply(web))
示例#4
0
 def test_INP29(self):
     web = Server("Web Server")
     process1 = Process("Process")
     web.validatesInput = False
     web.sanitizesInput = False
     web.encodesOutput = False
     process1.validatesInput = False
     process1.sanitizesInput = False
     process1.encodesOutput = False
     ThreatObj = Threat(
         next(item for item in threats_json if item["SID"] == "INP29"))
     self.assertTrue(ThreatObj.apply(process1))
     self.assertTrue(ThreatObj.apply(web))