•BradHillbrad@isecpartners.comToorConSeattle‘07May12,2007AttackingWebServicesSecurityMessageOrientedMadness,XMLWormsandwhySSLstilldoesn’tsuck.AttackingWebServicesSecurityToorConSeattle‘07Welcome.Greatpartylastnight!Thanksforwakingupintimetoseemytalk.AttackingWebServicesSecurityToorConSeattle‘07WhoamI?SeniorSecurityConsultantwithiSECPartnersPreviouslyadeveloperandsecurityexpertinthefinancialservicesandhigh-techsectors.BasedhereinSeattleAttackingWebServicesSecurityToorConSeattle‘07Somebackground…AttackingWebServicesSecurityToorConSeattle‘07TwoyearsagoatBlackHat...ScottStender&AlexStamosofiSECpresent:“AttackingWebServices:TheNextGenerationofVulnerableEnterpriseApps”AttackingWebServicesSecurityToorConSeattle‘07AttacksOldandNewXML,SOAPandUDDIWhytheOWASPTop10stillmatterNewvariantslikeXML,DTDandXPathInjectionComplexityandDenialofServiceattacksagainstXMLapplicationsAttackingWebServicesSecurityToorConSeattle‘07WebServicescanbescaryDiscoverableComplexVulnerableAttackingWebServicesSecurityToorConSeattle‘07MessageReceivedHalfadozenpresentationsandatleastonebookbyothershavefollowed.(repeatingmostlythesamematerial)Scott&Alexwerecarefulnotto…Butfewresistthetemptationtoofferaneasysolution:AttackingWebServicesSecurityToorConSeattle‘07WS-Security(totherescue)IntegrityConfidentialitySecuritytokensOtherhigher-levelprotocolsfrequentlyconsideredtofallunderthisumbrellaaswell.AttackingWebServicesSecurityToorConSeattle‘07HTTPXML,SOAP,WSDL,Schema,WS-Addressing,etc.XMLDigitalSignaturesXMLEncryptionSAMLKerberosX.509SecurityTokenProfilesWS-TrustWS-FederationWS-SecureConversationWS-PolicyWS-SecurityPolicyWS-Security.NetTCPChannel,FastInfoSet,etc.WS-ActuallyGetSomeWorkDoneAttackingWebServicesSecurityToorConSeattle‘07SSLisEverybody’sWhippingBoyTooold,boringandstandardformarketerstosell.WS-Securityhasdozensofnewboxestocheck.Eventhesmartbloggersandpunditsarehatin’IanGrigg(financialcryptography.com)“ThemantraofyoushoulduseSSLisjustplainstupid.”GunnarPeterson(1raindrop.typepad.com)“SSLiswhatisusuallybandiedaboutasasecuritymodelbyRestafarians”Arthur(emergentchaos.com)“leastusefulsecuritytechnologysincetinfoilunderwear”Andthat’salljustinthefirstweekofMay,2007.AttackingWebServicesSecurityToorConSeattle‘07“ConnectionOriented”isOldandBusted“MessageOriented”istheNewHotnessAttackingWebServicesSecurityToorConSeattle‘07IRespectfullyDisagreeSSLprovideswhatisneededformostrealworldWebServicesdeployments.WS-Securityistoocomplex,tooerrorproneandhastoomuchattacksurface.Apleaforsecuritysanityandsimplicity.AttackingWebServicesSecurityToorConSeattle‘07SometerminologyWSSE==WS-SecurityWhenIsaySSL,ImeanSSLv3andTLS10yearsofhabit.EverybodyknowsSSL.TLSsoundslikeacableTVnetworkoradisease.AndImeanwithclientcertificateauth.AttackingWebServicesSecurityToorConSeattle‘07RealityofSecureWebServicesAlmostnobodyisdeployingthemtopublicaudiences.Almostnobodyisdeployingnon-WSSEWebServicestowidepublicaudiences.WebSSOsystemsarethepseudo-exceptionManypublicusersStillonlyahandfuloftrustedWSSE-awareendpointsAttackingWebServicesSecurityToorConSeattle‘07Wherearetheyreally?UsedinternallyforSOAenterprisemessagebuses.AndtoexposeafewB2Bendpointstoafewtrustedcustomers.Standardinterface,goesthroughfirewalls.B2BVPNsaretoomuchofahassle.AttackingWebServicesSecurityToorConSeattle‘07ThreatRealitiesBusinessesplacealotoftrustintheirpartners.ITriskmanagementisrolledupwithotherfraud,errorsandomissionsandmanagedwithcontracts,auditandlawyers.Stillneedtobuildrobustapplications,butattacksatthebusinesslogiclayer(SQLinjection,etc)arenotthebiggestconcern.AttackingWebServicesSecurityToorConSeattle‘07ExcludetheAnonymousAttackerThebiggestthreatforWebServiceendpointsexposedtothepublicInternetistheanonymousattacker.Thesecuritytechnologyyouwantshouldauthenticateyourgenuineusersandexcludeeveryoneelseasthoroughlyandefficientlyaspossible.AttackingWebServicesSecurityToorConSeattle‘07Whymessageorientedsecuritysucks.AttackingWebServicesSecurityToorConSeattle‘07Reason1:AttackSurfaceTomakeasecuritydecisionaboutamessage,youneedtohaveamessage!Gettingamessageisnotfree.GettingaWS-*messageissuperextranotfree.AttackingWebServicesSecurityToorConSeattle‘07HTTPXML,SOAP,WSDL,Schema,WS-Addressing,etc.XMLDigitalSignaturesXMLEncryptionSAMLKerberosX.509SecurityTokenProfilesWS-TrustWS-FederationWS-SecureConversationWS-PolicyWS-SecurityPolicyWS-Security.NetTCPChannel,FastInfoSet,etc.WS-ActuallyGetSomeWorkDoneSSLAttackingWebServicesSecurityToorConSeattle‘07SSLSSLAnonymousAttackSurfaceAttackingWebServicesSecurityToorConSeattle‘07HTTPXML,SOAP,WSDL,Schema,WS-Addressing,etc.XMLDigitalSignaturesXMLEncryptionSAMLKerberosX.509SecurityTokenProfilesWS-TrustWS-FederationWS-SecureConversationWS-PolicyWS-SecurityPolicyWS-Security.NetTCPChannel,FastInfoSet,etc.WS-SecurityAnonAttackSurfaceAttackingWebServicesSecurityToorConSeattle‘07HTTPXML,SOAP,WSDL,Schema,WS-Addressing,etc.XMLDigitalSignaturesXMLEncryptionSAMLKerberosX.509SecurityTokenProfilesWS-Security.NetTCPChannel,