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

Security - Arbitrary Change Profile Picture #1131

Closed
thatsa9 opened this issue Feb 5, 2020 · 2 comments
Closed

Security - Arbitrary Change Profile Picture #1131

thatsa9 opened this issue Feb 5, 2020 · 2 comments

Comments

@thatsa9
Copy link

thatsa9 commented Feb 5, 2020

Describe

This vulnerability allows authenticated users to change other user's profile pictures.

Steps to reproduce the vulnerability

  1. Tried to login via Administrator privilege. We found 3 accounts.
    
    image

Moreover, we can access directly to Profile Pictures like this
http://site-name/bludit/bl-content/uploads/profiles/[username].png

image

image

image

  1. Tried to login via limit privilege (username: admon2, role: Editor).
    image

From a HTTP Request to perform to change a user picture.
image

We could change the username to another username.
image

As a result, we could change to the profile picture of another user.
image

image

Login with Administrator to verify the change via username “admin” and found a profile picture has changed.
image

In addition, we could arbitrarily create a picture (png) to other directories.
image
image

Comments
The vulnerability doesn't validate an authorization before the upload process. Moreover, it could be pulled username from trusted source

Bludit version

Affected in Bludit v3.10.0

PHP version

PHP Version 7.1.33

@dignajar
Copy link
Member

dignajar commented Feb 5, 2020

I will check, thank you!

@dignajar
Copy link
Member

dignajar commented Feb 5, 2020

Fixed, thank you

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

No branches or pull requests

2 participants