Skip to content

A User can get information of another user with Graph API #5125

Open

Description

@SagarGi

Description

With Graph API a user can get information of another user with username of another user.

Steps to reproduce

  1. Create user1 and user2

Curl command to get user information

curl -X GET -vk -u user1:123456 https://host.docker.internal:9200/graph/v1.0/users/user2 

Expected Behaviour

user1 should not be albe to get the information of another user user2

Actual Behaviour with the curl request

* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
*  subject: O=Acme Corp; CN=OCIS
*  start date: Nov 25 08:23:00 2022 GMT
*  expire date: Nov 25 08:23:00 2023 GMT
*  issuer: O=Acme Corp; CN=OCIS
*  SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
* Server auth using Basic with user 'user1'
} [5 bytes data]
> GET /graph/v1.0/users/user2 HTTP/1.1
> Host: host.docker.internal:9200
> Authorization: Basic dXNlcjE6MTIzNDU2
> User-Agent: curl/7.68.0
> Accept: */*
> 
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [130 bytes data]
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Length: 135
< Content-Type: application/json; charset=utf-8
< Date: Fri, 25 Nov 2022 08:34:44 GMT
< X-Graph-Version: 2.0.0-rc.1+b4e727b60
< 
{ [135 bytes data]
100   135  100   135    0     0   3000      0 --:--:-- --:--:-- --:--:--  3000
* Connection #0 to host host.docker.internal left intact
{
  "displayName": "user2 gurung",
  "id": "205ccfc7-3c37-46aa-9339-d7dc2ad5e362",
  "mail": "[email protected]",
  "onPremisesSamAccountName": "user2"
}

Environment

oCIS latest docker image

Activity

  1. micbar commented on Nov 25, 2022

    @micbar
    Contributor

    We have currently no means in ocis to hide users from each other. So just a P3, no release blocker.

  2. v-scharf commented on May 26, 2023

    @v-scharf
    Contributor

    still relevant with a lot of skipped tests

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions