<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The BASIS of SAP &#187; Security</title>
	<atom:link href="http://www.basissap.com/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.basissap.com</link>
	<description>The place to come when they say it's a BASIS problem</description>
	<lastBuildDate>Mon, 19 Jul 2010 00:35:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<atom:link rel='hub' href='http://www.basissap.com/?pushpress=hub'/>
<cloud domain='www.basissap.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>ECC6 SE16N vulnerability and logging &#8211; UPDATED</title>
		<link>http://www.basissap.com/2009/10/ecc6-se16n-vulnerability-and-logging/</link>
		<comments>http://www.basissap.com/2009/10/ecc6-se16n-vulnerability-and-logging/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 06:10:44 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[BASIS]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.basissap.com/?p=233</guid>
		<description><![CDATA[Please remove SE16N, or access to SE16N, from your production systems. UPDATE UPDATE &#8211; This topic was the subject of a blog by Kevin Wilson less than 2 weeks ago, at which time it was discussed extensively. https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/16008 As long as DEBUG access is very tightly controlled, your system should be protected from the risk [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.basissap.com%2F2009%2F10%2Fecc6-se16n-vulnerability-and-logging%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.basissap.com%2F2009%2F10%2Fecc6-se16n-vulnerability-and-logging%2F&amp;source=martin_english&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>Please remove SE16N, or access to SE16N, from your production systems.</p>
<p><strong>UPDATE</strong><br />
<blockquote>UPDATE &#8211; This topic was the subject of a blog by Kevin Wilson less than 2 weeks ago, at which time it was discussed extensively.</p>
<p><a href="https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/16008" target="_blank">https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/16008</a></p>
<p>As long as DEBUG access is very tightly controlled, your system should be protected from the risk of this transaction&#8230;.
</p></blockquote>
<p>I&#8217;ve known for a while that, in some releases of SAP, transaction SE16N can be used to change SAP tables, regardless of authorisations or security settings.  It&#8217;s not something I&#8217;ve been keen to see widely disseminated, as there are major systemic risks in making changes this way.  More dangerously, it provides a way to override authorisations by giving your userid (or your accomplice&#8217;s userid) the SAP_ALL  role.<br />
<center><a href="http://www.basissap.com/wp-content/uploads/2009/10/SE16N_01.jpg"><img src="http://www.basissap.com/wp-content/uploads/2009/10/SE16N_01-300x171.jpg" alt="SE16N, before entering &amp;SAP_EDIT in the command field" title="SE16N, before entering &amp;SAP_EDIT in the command field"/></a></center></p>
<p>Essentially, you run transaction SE16N, then type <strong>&#038;SAP_EDIT</strong> into the command field and press enter.<br />
<center><a href="http://www.basissap.com/wp-content/uploads/2009/10/SE16N_02.jpg"><img src="http://www.basissap.com/wp-content/uploads/2009/10/SE16N_02-300x170.jpg" alt="SE16N, AFTER entering &amp;SAP_EDIT in the command field" title="SE16N, AFTER entering &amp;SAP_EDIT in the command field"/></a></center></p>
<p>In the example below, I&#8217;ve changed the User Group to SUPER.<br />
<center><a href="http://www.basissap.com/wp-content/uploads/2009/10/SE16N_03.jpg"><img src="http://www.basissap.com/wp-content/uploads/2009/10/SE16N_03-300x170.jpg" alt="SE16N, changing User Group to SUPER" title="SE16N, changing User Group to SUPER"/></a></center></p>
<p>Personally, I&#8217;d recommend making the transaction unavailable (perhaps even removing it from TSTC ?) in your production system &#8211; Your firefighter userid can be given authorisation to allow the appropriate people to add it back in, if necessary.  </p>
<p>The reason for mentioning it at all is that <a href="http://www.SAPMentalNotes.com" target="_top">SAP Mental Notes</a> and <a href="http://it.toolbox.com/blogs/sap-on-db2/a-few-sap-ecc-hacks-34484" target="_top">IT-Toolbox SAP on DB2 for z/OS</a> have stated that changes using this method are permanently logged in the tables listed below:<br />
<strong>SE16N_CD_KEY </strong>: Change Documents – Header<br />
<strong>SE16N_CD_DATA </strong>: Change Documents – Data</p>
<p>This means, in theory, that you can can query these tables to audit the usage of SE16N to change data.  Personally, my attitude is that it&#8217;s all well and good knowing Joe Bloggs has broken your system, but I would rather not have to deal with the broken system in the first place.  However, there&#8217;s a bigger issue&#8230;..</p>
<p><strong><em>When I tested this out on an ECC6 IDES system (DB2 on Windows 2003), the SE16N_CD* tables were not updated.</em></strong><br />
<center><a href="http://www.basissap.com/wp-content/uploads/2009/10/SE16N_04.jpg"><img src="http://www.basissap.com/wp-content/uploads/2009/10/SE16N_04-300x169.jpg" alt="SE16N, ECC6 IDES, does not appear to update the SE16N_CD* tables" title="SE16N, on ECC6 IDES, does not appear to update the SE16N_CD* tables"/></a></center></p>
<p>1 &#8211; The knowledge of this method of changing data, which is available on production systems to anyone with access to the SE16N transaction is being more widely disseminated.<br />
2 &#8211; There appears to be at least one major platform / release that does not support audit of the method of changing data.</p>
<div id="wherego_related"><h3>Entries that other people found interesting:</h3><ul><li><a href="http://www.basissap.com/2010/01/finding-what-tables-and-fields-lie-behind-an-sap-transaction/" rel="bookmark" class="wherego_title">Finding what tables and fields lie behind an SAP transaction</a></li><li><a href="http://www.basissap.com/2010/01/sap-spool-issue-affects-all-releases/" rel="bookmark" class="wherego_title">SAP Spool issue &#8211; affects all Releases</a></li><li><a href="http://www.basissap.com/2009/10/web-2-0-presentation-tools-from-sap-%e2%80%93-integrate-twitter-into-powerpoint/" rel="bookmark" class="wherego_title">Web 2.0 Presentation Tools from SAP – Integrate Twitter into PowerPoint!</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.basissap.com/2009/10/ecc6-se16n-vulnerability-and-logging/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Critical security flaw in SAP GUI</title>
		<link>http://www.basissap.com/2008/12/critical-security-flaw-in-sap-gui/</link>
		<comments>http://www.basissap.com/2008/12/critical-security-flaw-in-sap-gui/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 00:47:30 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[BASIS]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.basissap.com/?p=94</guid>
		<description><![CDATA[An ActiveX vulnerability detected in the SAP GUI may possibly be exploited by an attacker to gain access to critical files and sensitive data. According to an advisory issued by the United States Computer Emergency Readiness Team (US-CERT), the vulnerability can be exploited remotely by an unauthenticated hacker. The flaw is in the ActiveX control, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.basissap.com%2F2008%2F12%2Fcritical-security-flaw-in-sap-gui%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.basissap.com%2F2008%2F12%2Fcritical-security-flaw-in-sap-gui%2F&amp;source=martin_english&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>An ActiveX vulnerability detected in the SAP GUI may possibly be exploited by an attacker to gain access to critical files and sensitive data. According to <a href="http://www.kb.cert.org/vuls/id/277313" target="_blank">an advisory issued by the United States Computer Emergency Readiness Team (US-CERT)</a>, the vulnerability can be exploited remotely by an unauthenticated hacker. The flaw is in the ActiveX control, MDrmSap, which could crash Internet Explorer when handling malicious code, US-CERT said. The advisory also states that the vulnerable ActiveX control can be disabled in Internet Explorer by setting the appropriate kill bit, or by disabling ActiveX in the Internet Zone, </p>
<p>The Danish vulnerability clearinghouse <a href="http://secunia.com/advisories/32682/">Secunia gave the flaw a highly critical rating</a>. To exploit the flaw, an attacker must trick a user into viewing a malicious website or email message, Secunia said.</p>
<p><a href="http://service.sap.com/sap/support/notes/1142431">SAP issued an update correcting the flaw</a>. If you don&#8217;t have an OSS ID, you can view a <a href="http://www.basissap.com/wp-content/uploads/2008/12/sapnote_0001142431.pdf">PDF copy of the note</a> &#8211; However, the one on the SAP site is guaranteed to be up to date, whereas the one here may not be.</p>
<div id="wherego_related"><h3>Entries that other people found interesting:</h3><ul><li><a href="http://www.basissap.com/2009/10/web-2-0-presentation-tools-from-sap-%e2%80%93-integrate-twitter-into-powerpoint/" rel="bookmark" class="wherego_title">Web 2.0 Presentation Tools from SAP – Integrate Twitter into PowerPoint!</a></li><li><a href="http://www.basissap.com/2009/05/free-articles-from-erptips-formerly-saptips/" rel="bookmark" class="wherego_title">Free Articles from ERPtips (formerly SAPtips)</a></li><li><a href="http://www.basissap.com/2008/12/5-sap-strategies-that-architects-and-executives-must-understand/" rel="bookmark" class="wherego_title">5 SAP Strategies that architects and executives must understand</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.basissap.com/2008/12/critical-security-flaw-in-sap-gui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SAP HR/PY Structural Authorisations</title>
		<link>http://www.basissap.com/2008/06/sap-hrpy-structural-authorisations/</link>
		<comments>http://www.basissap.com/2008/06/sap-hrpy-structural-authorisations/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 01:42:03 +0000</pubDate>
		<dc:creator>martin</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.basissap.com/2008/06/sap-hrpy-structural-authorisations/</guid>
		<description><![CDATA[I had added a new developer to the customer’s HR/PY landscape, but they couldn’t see any of the Employee Data in the Development or QA system. According to SU01, the roles and profiles were identical to a developer who could see the data. After hunting around my disks (because it has happened to me before [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.basissap.com%2F2008%2F06%2Fsap-hrpy-structural-authorisations%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.basissap.com%2F2008%2F06%2Fsap-hrpy-structural-authorisations%2F&amp;source=martin_english&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>I had added a new developer to the customer’s HR/PY landscape, but they couldn’t see any of the Employee Data in the Development or QA system. According to SU01, the roles and profiles were identical to a developer who <strong>could</strong> see the data.</p>
<p>After hunting around my disks (because it has happened to me before !!), I found a note about Table T77UA, which has prompted this reminder to both myself and any one else who has to work with HR/PY Developers.</p>
<p><strong>HR Security</strong></p>
<p>HR Security comprises the General Authorisation Profiles as managed by Role Maintenance (transaction PFCG), <strong>plus </strong><em>Structural Profiles</em>.&#160; To assign <em>Structural Profiles</em>, you use table T77UA (User Authorizations = Assignment of Profile to User).&#160; The Structural Authorisation&#8217;s themselves are specified in the T77PR table (Definition of Authorization Profiles).&#160; You protect structures (or substructures) of the Organisational Chart by making relevant entries in this table. </p>
<ol>
<li>When you use both Structural and General Authorisations , a user’s Overall Profile is determined from the intersection of the two. </li>
<li>The structural profile determines which object in the hierarchical structure the user has      <br />access to; </li>
<li>The general profile determines which object data (infotype, subtype) and which type of      <br />authorization (Read, Write, &#8230;) the user has for these objects. </li>
<li>The access mode for authorization objects in HR Master Data is determined in the AUTHC field (Authorization Level). </li>
<li></li>
</ol>
<p><b>Steps to do Structural Authorisation: </b></p>
<ol>
<li>Use transaction OOAC (updates table T77S0) to Activate the Structural Authorisation switch </li>
<li>Use transaction&#160; OOSP (updates table T77PR) to Create Structural Authorisation profiles. You protect (sub)structures by making relevant entries in this table. </li>
<li>Assign regular Role Authorisation via PFCG. </li>
<li>Assign Structural Authorisation profile to User Id. Apparently, some releases have a report RHRPROFL0 that you can use to assign the object id. However, I use transaction SM30 to update Table &#8211; T77UA (User Authorizations = Assignment of Profile to User). </li>
<li>Organizational Plans are created using PPOCE </li>
</ol>
<div id="wherego_related"><h3>Entries that other people found interesting:</h3><ul><li><a href="http://www.basissap.com/2010/01/finding-what-tables-and-fields-lie-behind-an-sap-transaction/" rel="bookmark" class="wherego_title">Finding what tables and fields lie behind an SAP transaction</a></li><li><a href="http://www.basissap.com/2008/06/sap-windows-monitoring-disk-usage/" rel="bookmark" class="wherego_title">SAP Windows : Monitoring Disk usage</a></li><li><a href="http://www.basissap.com/2008/12/5-sap-strategies-that-architects-and-executives-must-understand/" rel="bookmark" class="wherego_title">5 SAP Strategies that architects and executives must understand</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.basissap.com/2008/06/sap-hrpy-structural-authorisations/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
