<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Mike,<BR>
&nbsp;<BR>
That seems to ring a bell from when we upgraded to ECC 6 now that you mention it.<BR>
&nbsp;<BR>
Maybe somebody intended to enhance Method CL_SWF_UTL_WAPI_FRAMEWORK-&gt;IS_REQUEST_ALLOWED or amend the values in the S_RESTRICTED_METHODS in the&nbsp;Private Attribute on the Class&nbsp;to be mindful of authorisation but never got around to it?<BR>
&nbsp;<BR>
Mike GT<BR>&nbsp;<BR>
<DIV>
&gt; Date: Tue, 26 Jul 2011 15:37:56 +0100<BR>&gt; Subject: RE: Have authority checks disappeared from WAPIs?<BR>&gt; From: wug@workflowconnections.com<BR>&gt; To: sap-wug@mit.edu<BR>&gt; <BR>&gt; Thanks all for your responses, I'll just reply to all in one post.<BR>&gt; <BR>&gt; Mike: Yes, I looked at that very method - nada. At least not for<BR>&gt; SAP_WAPI_ADM_WORKFLOW_CANCEL that I've testing with.<BR>&gt; <BR>&gt; Claude: Spotted that, I assumed it was just a result of SE37 testing. Good<BR>&gt; point though, so I doublechecked by putting the FM call into a test report<BR>&gt; - no auth checks apart from a couple of arbitrary org validations.<BR>&gt; <BR>&gt; Alon: I tested a bit further and am now convinced you're spot on.<BR>&gt; <BR>&gt; The only question that remains is whether this has changed... My vague<BR>&gt; recollections is that WAPIs used to check auths - which would make sense<BR>&gt; as the SWW FMs do auth checks by default.<BR>&gt; <BR>&gt; Hmmmmm....<BR>&gt; <BR>&gt; Thanks again.<BR>&gt; Mike<BR>&gt; <BR>&gt; <BR>&gt; On Tue, July 26, 2011 3:22 pm, Alon Raskin wrote:<BR>&gt; &gt; Mike,<BR>&gt; &gt;<BR>&gt; &gt; I can confirm your suspicion. We recently had a security issue with one of<BR>&gt; &gt; our clients because the user was able to execute SAP_WAPI_CREATE_WORKLIST<BR>&gt; &gt; for another user. They changed a value on the screen and they could view<BR>&gt; &gt; someone else's inbox). We had to put a fix in our code to ensure that did<BR>&gt; &gt; not happen.<BR>&gt; &gt;<BR>&gt; &gt; I have been meaning to log this with SAP...<BR>&gt; &gt;<BR>&gt; &gt; Regards,<BR>&gt; &gt;<BR>&gt; &gt; Alon Raskin<BR>&gt; &gt; e:&nbsp;araskin@go3i.com<BR>&gt; &gt; p: +1 713 513 4820<BR>&gt; &gt; c: +1 207 409 4983<BR>&gt; &gt; f:&nbsp; +1 806 403-4983<BR>&gt; &gt; The only SAP mobility solution built in native SAP.<BR>&gt; &gt; http://www.themobileworkplace.com<BR>&gt; &gt;<BR>&gt; &gt; -----Original Message-----<BR>&gt; &gt; From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On Behalf<BR>&gt; &gt; Of Mike Pokraka<BR>&gt; &gt; Sent: Tuesday, July 26, 2011 5:46 AM<BR>&gt; &gt; To: sap-wug@mit.edu<BR>&gt; &gt; Subject: Have authority checks disappeared from WAPIs?<BR>&gt; &gt;<BR>&gt; &gt; G'Day,<BR>&gt; &gt;<BR>&gt; &gt; I'm not sure if I've just noticed this or if it's been this way for a<BR>&gt; &gt; while, or if my memory is deceiving me:<BR>&gt; &gt;<BR>&gt; &gt; One upon a time the WAPIs used to be a formal wrapper for the equivalent<BR>&gt; &gt; SWF*/SWW* function modules. I think the WAPIs used to do indirect auth<BR>&gt; &gt; checks via these FM calls, however since the FMs can be overriden (e.g. FM<BR>&gt; &gt; SWW_WI_ADMIN_CANCEL has a parameter AUTHORIZATION_CHECKED) I am not too<BR>&gt; &gt; sure and have no 4.6 system handy to check.<BR>&gt; &gt;<BR>&gt; &gt; Nowadays (ECC6) however, the WAPIs use OO methods internally and as far as<BR>&gt; &gt; I have been able to establish there are no auth checks carried out - if a<BR>&gt; &gt; user can execute FM SAP_WAPI_ADM_WORKFLOW_CANCEL by any means then they<BR>&gt; &gt; can cancel a work item. Unfortunately I haven't been able to conclusively<BR>&gt; &gt; test this with a user that has SE37 but no workitem admin access, but<BR>&gt; &gt; debugging shows no auth check.<BR>&gt; &gt;<BR>&gt; &gt; Could someone verify I've got this right? Has this changed? Am I just<BR>&gt; &gt; confused?<BR>&gt; &gt;<BR>&gt; &gt; I'm going to implement my own auth checks anyway, but I am very curious as<BR>&gt; &gt; it *may* mean that custom code written pre-ECC could have turned into a<BR>&gt; &gt; security hole post-upgrade.<BR>&gt; &gt;<BR>&gt; &gt; Regards,<BR>&gt; &gt; Mike<BR>&gt; &gt;<BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; SAP-WUG mailing list<BR>&gt; &gt; SAP-WUG@mit.edu<BR>&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>&gt; &gt;<BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; SAP-WUG mailing list<BR>&gt; &gt; SAP-WUG@mit.edu<BR>&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>&gt; &gt;<BR>&gt; <BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; SAP-WUG mailing list<BR>&gt; SAP-WUG@mit.edu<BR>&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></DIV>                                               </div></body>
</html>