Ten Golden Rules
Ten Golden Rules
Ten Golden Rules
SAP Security 2014 – Protecting Your SAP Systems Against Hackers And Industrial Espionage
Ten golden rules for coding authorization checks in ABAP
Click to edit Master text styles
March 18, Heidelberg
Second level
Third level
Fourth level
Fifth level
©
© 2014
2011 Virtual
2014 Virtual Forge
Forge GmbH
GmbH || www.virtualforge.com
www.virtualforge.com || All
All rights
rights reserved.
reserved.
My car, my house, my boat, …
©
© 2014
2011 Virtual Forge GmbH | www.virtualforge.com | All rights reserved.
Authorizations in Custom Code
©
© 2014
2011 Virtual Forge GmbH | www.virtualforge.com | All rights reserved.
Golden Rule #1
©
© 2014
2011 Virtual Forge GmbH | www.virtualforge.com | All rights reserved.
Golden Rule #1
©
© 2014
2011 Virtual Forge GmbH | www.virtualforge.com | All rights reserved.
Golden Rule #2
©
© 2014
2011 Virtual Forge GmbH | www.virtualforge.com | All rights reserved.
Golden Rule #3
©
© 2014
2011 Virtual Forge GmbH | www.virtualforge.com | All rights reserved.
Golden Rule #4
©
© 2014
2011 Virtual Forge GmbH | www.virtualforge.com | All rights reserved.
Golden Rule #5
©
© 2014
2011 Virtual Forge GmbH | www.virtualforge.com | All rights reserved.
Golden Rule #6
©
© 2014
2011 Virtual Forge GmbH | www.virtualforge.com | All rights reserved.
Golden Rule #7
©
© 2014
2011 Virtual Forge GmbH | www.virtualforge.com | All rights reserved.
Golden Rule #8
Third level
ID 'OBJNAME' FIELD lv_prog
ID 'P_GROUP' DUMMY " Field not required in this context
Fourth level
ID 'ACTVT' FIELD '03'.
IF sy-subrc = 0.
Fifth level
READ REPORT lv_prog INTO lt_code.
ENDIF.
General advice
Avoid "*" values in authorization fields, as they force administrators to grant
unnecessarily high privileges to users
©
© 2014
2011 Virtual Forge GmbH | www.virtualforge.com | All rights reserved.
Golden Rule #9
©
© 2014
2011 Virtual Forge GmbH | www.virtualforge.com | All rights reserved.
Golden Rule #10
©
© 2014
2011 Virtual Forge GmbH | www.virtualforge.com | All rights reserved.
Further Information
Second level
https://www.virtualforge.com/en/blog/post/ten_golden_rules_authorizations_en.html
Third level
Fourth level
Fifth level
©
© 2014
2011 Virtual Forge GmbH | www.virtualforge.com | All rights reserved.
Thank you
Click to editfor your text
Master attention
styles
Second level
Third level
Fourth level
Fifth level
Andreas Wiegenstein
CTO
Twitter: @codeprofiler
©
© 2014
2011 Virtual Forge GmbH | www.virtualforge.com | All rights reserved.
Disclaimer
SAP, R/3, ABAP, SAP GUI, SAP NetWeaver and other SAP products and services mentioned herein as well as
Click to edit Master text styles
their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries.
All other product and service names mentioned are the trademarks of their respective companies. Data contained
Second level
in this document serves informational purposes only.
No part of this document may be reproduced without the prior written permission of Virtual Forge GmbH.
©
© 2014
2011 Virtual Forge GmbH | www.virtualforge.com | All rights reserved.