Skip links
Picture of Vahagn Vardanian

Vahagn Vardanian

Co-founder and CTO of RedRays

Security note Additional checks in dscdb6up, SAP security note 1158618

SAP Note 1158618
SAP Security Note
High priority

SAP security note 1158618, "Security note: Additional checks in dscdb6up", is a program error note released on 08.10.2009. Below are the symptom and SAP recommended solution.

CategoryProgram error
PriorityCorrection with high priority
TypeSAP Security Note
Version4
StatusReleased for Customer
Released on08.10.2009
LanguageEnglish

Description

Symptom

Members of the sapsys group can damage files of other users on UNIX by using the program dscdb6up incorrectly.

Solution

Use a current version of the program dscdb6up to prevent intentional system damage. Patch text: "DB6: additional security checks".

To avoid the problem, proceed as follows:

  • If unsure about the current version of dscdb6up, remove the SUID bit: chmod 750 dscdb6up. Without the SUID bit, dscdb6up cannot change any operating system passwords.
  • Change the passwords using operating system means.
  • Recreate the password file using: dbscdb6up -create…

Reason and prerequisites

The program dscdb6up belongs to the group sapsys and has an SUID bit (chown root:sapsys ; chmod 4750), allowing users to change their operating system passwords, which connect them to the SAP database. Members of the sapsys group can exploit a gap in C-coding to overwrite other users’ files with the content of the password file.

Full note on SAP: SAP Support Launchpad note 1158618

Detailed exploitation and proof-of-concept material for this note is maintained in the RedRays Security Platform. For access, contact [email protected].

Explore More