Quantcast
Channel: SCN: Message List - Security
Viewing all 5338 articles
Browse latest View live

Re: authorization upgrade

$
0
0

just found again:

 

http://wiki.scn.sap.com/wiki/display/Security/Best+Practices+-+How+to+find+TCodes+changed+after+upgrade+regarding+SU24-data

 

which provides also a hint...

 

I can only suggest to conentrate first on the main t-codes (I mean for your core business applications). Saw also already, that the upgrade was taken as chance to redesign the auth-concept.

Or at least, create new roles for the main business tasks first and assign them. The decision, whether the old roles shall be 'upgraded' then later or if only 'new' roles should be used can be taken quickly, the realization can be spread then ito improtant and not so important tasks.

b.rgds, Bernhard


Re: How to encrypt documents in ABAP

$
0
0

Martin Voros wrote:

 

Hi,

 

 

 

I think that part of documentation is obsolete. SAP uses this to protect credit card details if stored in SAP. I don't think you need additional product for this but I am not 100% sure.

 

 

 

If you do "where used" for this FM you will see that it's used in method EXTERNAL_ENCYPTING of class CL_PCA_SECURITY. This may give you an idea how to call this FM. From top of my head you can define an application in table SSFARGS. Here you define which PSE with certificate will be used and corresponding options for output format and algorithms.  You can use FM SSF_GET_PARAMETER to read these settings from this table for an application. In reciepient list you need to use values returned by SSF_GET_PARAMETER. Unless you protect PSE with password you don't have to populate STR_PAB_PASSWORD. STR_PAB comes from SSF_GET_PARAMETER.

 

 

 

You can also see how it's done in report SSF01.

 

 

 

Cheers

Martin! thanks for you answer.


Fortunally, I can find out how I have to excecute this FM.


The problem here was when I executed the FM SSF_GET_PARAMETER.

 

As you said, this FM returns the parameters of a SSF application (location of the pse, encryption algorithm, etc..), but what I realy needed were the parameters of the certificate that is included in that SSF application.

 

So, I resolve it in this way:

 

1- Call SSF_GET_PARAMETER to get the information of SSFA

2- Call  SSFC_GET_CERTIFICATELIST to get the certificate list of that SSFA

3- Call  SSFC_PARSE_CERTIFICATE for every certificate in the list of certificates.

 

The code is something like this:

 

*Read SSFA information

CALL FUNCTION 'SSF_GET_PARAMETER'

   EXPORTING

     application             = 'SSFA'

   IMPORTING

     str_pab                 = str_pab

     str_pab_password        = str_pab_password

     str_profileid           = str_profileid

     str_profile             = str_profile

     str_encralg             = str_encralg

   EXCEPTIONS

     ssf_parameter_not_found = 1

     OTHERS                  = 2.


*Read certificates included in SSFA

CALL FUNCTION 'SSFC_GET_CERTIFICATELIST'

   EXPORTING

     profile               = str_profile

   IMPORTING

     certificatelist       = lt_certificatelist.

 

*Here you can obtein the information of each certificate. In my case is just one

LOOP AT lt_certificatelist INTO lv_certificate.

 

   CALL FUNCTION 'SSFC_PARSE_CERTIFICATE'

     EXPORTING

       certificate         = lv_certificate

     IMPORTING

       subject             = l_subject

       issuer              = l_issuer

       serialno            = l_serialno

       validfrom           = l_validfrom

       validto             = l_validto

       algid               = l_algid

       fingerprint         = l_fingerprint

       summary             = l_summary

       all                 = l_all

     EXCEPTIONS

       ssf_krn_error       = 1

       ssf_krn_nomemory    = 2

       ssf_krn_nossflib    = 3

       ssf_krn_invalid_par = 4

       OTHERS              = 5.

 

ENDLOOP.


 

lw_recipient-id = l_subject

INSERT lw_recipient INTO TABLE lt_recipient.

 

*Finally, call the FM to encrypt the document:

CALL FUNCTION 'SSF_KRN_ENVELOPE'

   EXPORTING

     ostr_input_data_l            = lv_bin_data_len

     str_pab                      = str_pab

     str_pab_password             = str_pab_password

     str_sym_encr_alg             = 'AES128-CBC'

   IMPORTING

     ostr_enveloped_data_l        = lv_enveloped_data_len

     crc                          = lv_crc

   TABLES

     ostr_input_data              = lt_bin_data

     recipient_list               = lt_recipient

     ostr_enveloped_data          = lt_enveloped_data

   EXCEPTIONS

     ssf_krn_error                = 1

     ssf_krn_noop                 = 2

     ssf_krn_nomemory             = 3

     ssf_krn_opinv                = 4

     ssf_krn_nossflib             = 5

     ssf_krn_recipient_list_error = 6

     ssf_krn_input_data_error     = 7

     ssf_krn_invalid_par          = 8

     ssf_krn_invalid_parlen       = 9

     ssf_fb_input_parameter_error = 10

     OTHERS                       = 11.


 

I hope this can help anybody with the same problem.


Regards.

--

German Guzelj

Release blocks in MRBR when Purchasing group is Null

$
0
0

We have credit memo invoices that are entered without referencing Purchase order on MIRA/MIRO. When they go to release a block on the invoice it is looking for blank value " " in M_RECH_EKG - Inventory release purchasing group since there is no attached PO. I don't have a problem adding the additional M_BANF_BSA authorization

 

The developer is asking me to set the value of M_RECH_EKG to * and that this is the SAP "standard" way of dealing with this type of issue. I was hoping that someone might have run into this issue before and has a better suggestion

 

su53.jpg

how to configure SAP logon tickets with Active Directory for SSO

$
0
0

Hello,

 

I'm looking for documentation, preferably a guide with configuration steps that cover the following:

 

- configuring SAP logon tickets for ABAP systems to be used with Active Directory

- the goal is to have a logon ticket created following a user logging into their Windows desktop

 

I've been looking on SCN without luck so far. Can anyone point me to existing documentation if it exists, or share their experience or thoughts.

 

Much appreciated.

 

Paul

Unable to add Security Policy to user id's in SU01 or SU10

$
0
0

Hi Experts,

 

We have a situation where we created Security Policy in two systems (CRM and BW) where as while trying to assign to user id's as a single by using SU01 or Mass by using SU10, We don't see any option in BW system. We are able to add to users in CRM system but not in BW system. Is there any thing we need to activate to enable or is there any other dependencies.

 

 

Thanks a lot and have a nice day!!

 

Regards,

Mahipal.

Automate assign/remove roles to/from users every month

$
0
0


Hi,

 

We have a request to assign all users to RoleA, RoleB at calendar month end. Then after calendar month end, to remove RoleA, RoleB from all users and assign all users to RoleY, RoleZ.

 

I'm currently doing it thru SU10, adding and removing roles to users at calendar month end.

 

Is it possible to automate this (assign roles to users then remove roles from users) for every month? May I know the detailed steps to do it?

 

Thank you.

Re: Automate assign/remove roles to/from users every month

$
0
0

Hi

 

You would need to build something custom for this

 

That aside, is there a reason why you need to do this? If this is a common activity I would be questioning the design reasoning and see if there is an alternative approach

 

Do you have specific access you want to restrict from all users each month-end?

 

Regards

Colleen

Re: Automate assign/remove roles to/from users every month

$
0
0

Thanks - thats what I was wonderIng if SM01 transaction locking might be solution or if some function config. When movement types mentioned I immediately thought MIGO and locking that would not help if  goods receipt allowed. I assume solution depends on what movenent type?

 

but you witnessed situation where they relied on authorisations to achieve temporary lock down?


Re: Automate assign/remove roles to/from users every month

$
0
0

Hi

 

If you want to schedule (so that it runs automatically), then option (1) works best: you can schedule ABAP programs to run in the background, to be started at a certain time , or after a certain event.(using SM36/SM37)

 

Open (4) could also be schedule, but then this needs to be done outside SAP. Using Windows Task Scheduler or CRON job scheduling in case of unix/linux based systems.

 

Option (2) and (3) most of the time require "human intervention": you have to prepare the "data set" (which users/roles-assigments you are going to change), generate and start the BIM/CATT script

Re: Automate assign/remove roles to/from users every month

$
0
0

I won't pretend to be a functional expert in logistics or finance, but it seems to me that this is likely a configuration and/or business process issue and not a security issue.  I'm pretty sure it is not common for organizations to take away access to MIGO entirely during month-end close.  I think rather that most organizations will just do something like lock the period that is being closed, so new postings go to the new period.  This should happen anyway, since closing is usually done after the period in question has expired.

 

You might have a look at Steps for opening and closing period – MM FI CO, but otherwise this question might be better raised at SAP ERP - Logistics Materials Management (SAP MM).

 

Regards,

Matt

EHP7: New feature added in SU25

$
0
0

Dear experts,

 

Can you please help me understanding below two option, appeared when I executed Step 2a in SU25 after our system upgrade from EHP6 to EHP7 and one new Option in SU25, “Expert mode for transferring SU22 data”? Also if possible please share me the link or document which helps me understanding new SU25?

 

SU25 Screen.jpg

Re: EHP 7 - Recommended Security Approach?

$
0
0

Thanks for the reply !!!

When I executed the SU25 2b I got only 6 transaction but I can see lots of transaction are customized by us earlier in SU24? Do you know what went wrong?

 

Also I have selected both the boxes "Selection Includes SAP standard Application" and "Selection includes Customer and Partner Application" in Step 2a.

 

SU25 Screen.jpg

Re: Unable to add Security Policy to user id's in SU01 or SU10

$
0
0

Hi Alex,

 

We have various systems as below..

 

EHP2 FOR SAP CRM 7.0 ---- CRM system ,SECPOL available

SAP NetWeaver AS ABAP 7.31 --- PI System, SECPOL available

 

SAP NetWeaver 7.3 --- BW System, Adding SECPOL to users (SU01 or SU10)is not available, But we can create SECPOL and also we can see SECPOL field in USR02 table. we don't understand  if it is related to release why we have these in system.

 

Regards,

Mahipal.

How to restrict IQ02 at plant level

$
0
0

Hi All,

 

Currently the t-code IQ02 does not restrict deletion of serial number at plant level.

Eg. Site 1 users are able to delete serial number for Site 2 users using IQ02 and vice versa.

IQ02 has an object I_werks however it seems its not being checked (SU24 checks are valid for this)

Kindly provide help me find a solution on how can we restrict deletion of serial number using IQ02 at plant level.

Re: Revoke Teco authorization

$
0
0

Hello Khandokar

 

I suspect your question provides too little information. "Revoke Technical Completion" is a action, in a certain transaction. It may be difficult for "us" as security experts to determine the involved SAP transaction based on a screenshot (unless you accidentally have functional experise in that area). So that makes it difficult to answer the question. In general i would to the following to determine the involved authorization object.

  1. Determine the SAP transaction used
  2. Check in SU24 which objects are involved in the transaction. Read the documentation of these authorization objects to see if some objects/fields are related to technical completion
  3. If this does not provide a answer, you can always start a authorization trace and execute the transaction in a non production system to see if the 'revoke teco' action triggers a authorization check.

 

If there is really no check triggered, then you may be able to build one in, if possible via a user-exit. But this requires some custom development.

 

Hope this helps in your search.


Restrict CO02 change order

$
0
0

Hi Experts,

 

 

Please help us to restrict change order ones it released.

 

user will able to change order before release ones the HOD released the order no one can change the order even he have the CO02 rights.

 

or if user change order after release this order should comes again to HOD for release the change order.

 

 

 

Best Regards

Deepak

SAP CUA (Central User Administration in ABAP) - migration process failed to new CUA - where to find log, to find out what went wrong?

$
0
0

Hi SAP Gurus,

 

I am looking for logs concerning central user administration (CUA).

 

My problem in short:

We had two CUA.

We want to migrate them to a single CUA.

During the migration process, SAP not all roles where transferred.

The user account names on the new CUA are the same, as on the old CUA.

As we had to focus on restoring the system, we did not focusing on documentation the errors.

 

We had to restore the clients user/roles, of the effected client system, with client copy tools.

 

Now want to understand what was not working and having a hard time to find the logs to check, or don’t find anything useful in the know logs.

Now we need to track down, what went wrong, so we are not guessing.

 

SAP System Log does not help here, at least there was nothing written into it.

We looked at all logs, that SAP note 333441 documents, but the failure happened, when we try to connect to the new CUA and upload the users. Here we don't find any logs so far, so understand what went wrong.

 

Where is CUA written its information, during migration process (disconnect client from CUA, connect it back to new CUA)?

 

Effected system:

CUA OLD = SAP SolutionManger 7.01 based on Oracle/Windows (old system)

CUA NEW = SAP SolutionManger 7.02 based on Oracle/Windows (new system)

CUA Client = ECC 6.0 7.00 based on Oracle/Windows

 

Thanks for your hints.

 

Best regards

 

 

 

Carlos Behlau

Is the Goto Statement in Debugging a security risk?

$
0
0

Hi,

 

In debugging ABAP code we have  the option to jump to a certain statement via the GOTO STATEMENT from the menu.

Is there any security risk in doing this.

It is now controlled in the 02 Activity of the authorization object, which was formerly only used for changing values with the debugger.

Re: Is the Goto Statement in Debugging a security risk?

$
0
0

It is often misunderstood as forward and backward navigation instead of stepping in the debugger and always checked actvt 02 - but in earlier releases was not as obvious to find and did not write a system log message. You can now also right-click the location to GOTO.

 

But it is just as dangerous if not more so that changing a variable in the debugger and more than just display. Reason is that between the current code line and the code line "jumped to", the code in between is not executed at all...

 

So you can jump over authority-checks instead of having to change the sy-subrc result. Changes can be made without the calls to change documents and logs being made. All other forms of validations or checks can be jumped over, including statements which were created not to be able to debug them (such as kernel calls) then you don't need to be able to change anything in the debugger if you can steer wide of it.

 

It is functionally equivalent to being able to create a program and execute it, regardless of your other authorizations, developer key or even if the system is closed for changes.

 

So... very naughty. Only for developers in development systems and even in emergency situations it should not really be used in production either.

 

Cheers,

Julius

STRUST/SM59: Getting Root/Intermediate Cert into HTTPS request

$
0
0

All,

 

We are working with a Vendor of ours, using a web service to communicate some information regarding business transactions.  The vendor requires that we use HTTPS Client authentication using a client certificate which has been signed by a major trusted root certificate authority (ex: Verisign).

 

We've used STRUST to setup the PSE and certificate.  We then used SM59 to setup an RFC (Connection Type "G" for external HTTP connection) to communicate with our vendor partner.  When we test the RFC the following happens: ICM_HTTP_SSL_ERROR.

 

Looking in the dev_icm file we see:

 

[Thr 09] Fri Jul 25 14:44:09 2014

[Thr 09] *** ERROR during SecudeSSL_SessionStart() from SSL_connect()==SSL_ERROR_SSL

[Thr 09]    session uses PSE file "/usr/sap/ED1/DVEBMGS11/sec/SAPSSLPAYCON.pse"

[Thr 09] SecudeSSL_SessionStart: SSL_connect() failed --

[Thr 09]   secude_error 536875072 (0x20001040) = "received a fatal SSLv3 handshake failure alert message from the peer"

[Thr 09] >> ---------- Begin of Secude-SSL Errorstack ---------- >>

[Thr 09] WARNING in ssl3_read_bytes: (536875072/0x20001040) received a fatal SSLv3 handshake failure alert message from the peer

[Thr 09] WARNING in ssl3_get_certificate_request: (536871681/0x20000301) CertRequest with empty certificate_autorities list received (violation of SSLv3/TLSv1.0 spec) -- declining request

[Thr 09] << ---------- End of Secude-SSL Errorstack ----------

[Thr 09]   SSL_get_state() returned 0x000021d0 "SSLv3 read finished A"

[Thr 09]   No certificate request received from Server

[Thr 09]   SSL NI-sock: local=W.X.Y.Z:48439  peer=A.B,C,D:XXXX

[Thr 09] <<- ERROR: SapSSLSessionStart(sssl_hdl=10222cd90)==SSSLERR_SSL_CONNECT

[Thr 09] *** ERROR => IcmConnInitClientSSL: SapSSLSessionStart failed (-57): SSSLERR_SSL_CONNECT {000209d5} [icxxconn_mt.c 1957]

 

We extracted the certificate/public and private key out of the PSE using sapgenpse export_p12.  We used soapUI to diagnose the problem.  We eventually figured out the Root and Intermediate certificate was missing from the .p12 file.  Once we edited the P12 to include the root/intermediate certificate, we were able to proceed with communicating with our vendor using the p12 and SOAP UI.

 

Any idea how to get these root and intermediate certificates into AS ABAP and then have AS ABAP send the root/intermediate certificate to our vendor/peer when performing a RFC call or test?

Viewing all 5338 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>