Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Vulnerability IDOR] #2355

Open
egrullon opened this issue Mar 8, 2022 · 1 comment
Open

[Vulnerability IDOR] #2355

egrullon opened this issue Mar 8, 2022 · 1 comment
Labels
bug TheHive4 TheHive4 related issues

Comments

@egrullon
Copy link

egrullon commented Mar 8, 2022

Request Type

Vulnerability IDOR

Work Environment

Question Answer
OS version (server) Debian, Ubuntu, CentOS, RedHat, ...
OS version (client) XP, Seven, 10, Ubuntu, ...

Problem Description

In this same version 4.1.16-1 you can use the “_id” parameter of a user and place it in the other user and you can switch to that new profile regardless of the profile of one user and another.

Steps to Reproduce

  1. step 1
    Using BurpSuite activate the "intercept is on" and capture the login with the correct credentials.
    In burpsuite you get the following:

{
"user":"[email protected]",
"password":"EDSecr3t12677849*rRHYWs"
}

  1. step 2
    This will send it to the Repeater in BurpSuite and replace the user with another user and not put a password:

{
"user":"[email protected]",
"password":""
}

Then we see the response from the server with a 200 OK

Note: the user edwin.grullon must be logged in the application

After a 200 OK in the response within BurpSuite, we proceed to copy the parameter “_id”:"~81948463" and paste it in another domain user that is registered and logged in TheHive. Then right click, Request in browser, In original session.
We copy the URL and copy it in the browser where the user maria.acosta is logged in the application.
We refresh the page and click on the arrow to go back in the browser.
And it already appears logged in with the user juan.perez who is registered in TheHive.

Possible Solutions

Update to the latest version to ensure that the control mechanisms are properly hardened on the server side.

References: https://cwe.mitre.org/data/definitions/639.html

Complementary information

Discovery date: 02/15/2022
Device version: 4.1.16-1
Affected components: TheHive-Projects 4.1.16-1

CVSS v3: 7.1
CWE: CWE-639

Applicant name: Edwin Grullon Aybar
Email: [email protected]

@egrullon egrullon added bug TheHive4 TheHive4 related issues labels Mar 8, 2022
@baonq-me
Copy link

baonq-me commented Apr 12, 2022

I am surprised that nobody in the development team cares about this report. Maybe they are busy with TheHive 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TheHive4 TheHive4 related issues
Projects
None yet
Development

No branches or pull requests

2 participants