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 - Authorization] #2353

Closed
egrullon opened this issue Mar 8, 2022 · 6 comments
Closed

[Vulnerability - Authorization] #2353

egrullon opened this issue Mar 8, 2022 · 6 comments
Labels
bug TheHive4 TheHive4 related issues

Comments

@egrullon
Copy link

egrullon commented Mar 8, 2022

Request Type

Vulnerability - Authorization

Work Environment

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

Problem Description

Using a web proxy tool such as BurpSuite, a domain user can capture when trying to log in with their account and simply replace through BurpSuite the name of their domain user with another existing user in thehive and not enter a password (this It is done in the Repeater tab in BurpSuite) and you simply hit send and it sends you a reply with a status of 200 OK, with this we can now switch to that new user.

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 can 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, we proceed to right click, Request in browser, In original session.
We copy the URL and copy it into the browser where the user edwin.grullon is logged into 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.

Reference: https://cwe.mitre.org/data/definitions/285.html

Complementary information

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

CVSS v3: 7.7
CWE: CWE-285

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

@egrullon egrullon added bug TheHive4 TheHive4 related issues labels Mar 8, 2022
@egrullon egrullon changed the title [Bug] [Vulnerability - Authorization] Mar 8, 2022
@nadouani
Copy link
Contributor

Hello @egrullon first of all, thanks for creating an issue.

Can you please tell more about:

  • the type of authentication you use? "local, ldap, ad"?
  • is the second login call already authenticated? (Session cookie?)
  • what's the full response of the second API call that returns 200?

Thanks

@egrullon
Copy link
Author

egrullon commented Apr 7, 2022

Hi @nadouani,

- the type of authentication you use? "local, ldap, ad"?
I did the tests on all authentication methods.

- is the second login call already authenticated? (Session cookie?)
Yes Sir.

- what's the full response of the second API call that returns 200?
The response 200 OK.

Thanks,

@baonq-me
Copy link

Maybe this issue is duplicated with #2355

@egrullon
Copy link
Author

egrullon commented Apr 21, 2022

Hi @nadouani,

1.-
thehive1

2.-
thehive2

3.-
thehive3

4.-
thehive4

5.-
thehive6

6.-
thehive7

7.-
thehive8

8.-
thehive9

9.- Then one or two go back in your browser for new user...
thehive10

@egrullon
Copy link
Author

egrullon commented May 9, 2022 via email

@abdullahsadiku
Copy link

@egrullon can you please drop a link to download thehive iso......

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

4 participants