PalisadoesFoundation / talawa-api

API Backend for the Talawa Mobile App. Click on the link below to see our documentation
https://docs.talawa.io/
GNU General Public License v3.0
224 stars 813 forks source link

Unrestricted Exposure of User Data Through the User Query #2214

Open krishna619 opened 7 months ago

krishna619 commented 7 months ago

Describe the bug The affected query is User($id: ID!) which fetches detailed information about a user based on the user ID provided. The current implementation does not restrict users from querying information about others, which violates common privacy principles and data access controls.

query User($id: ID!) {
    user(id: $id) {
        user {
            _id
            joinedOrganizations {
                _id
            }
            phone {
                mobile
            }
            address {
                line1
                countryCode
                city
                state
            }
        }
        appUserProfile {
            _id
            adminFor {
                _id
            }
        }
    }
}

Potential internship candidates Please read this if you are planning to apply for a Palisadoes Foundation internship https://github.com/PalisadoesFoundation/talawa/issues/359

github-actions[bot] commented 6 months ago

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

AdityaRaimec22 commented 2 months ago

@palisadoes can I get assigned to the issue.

github-actions[bot] commented 1 month ago

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

palisadoes commented 1 month ago

Unassigning. Inactivity

rohansen856 commented 1 month ago

@palisadoes i would like to work on this issue. please assign me this issue. thank you.

nitintwt commented 1 month ago

@palisadoes @Cioppolo14 Can you please assign this issue to me. Already resolved the issue locally and wanted to make a PR. Thank you

palisadoes commented 3 weeks ago

@nitintwt I've assigned it to you

github-actions[bot] commented 1 week ago

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.