Skip to content

[10.0] web_responsive: security issue showing all menus #850

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

Closed
mohamedhagag opened this issue Jan 30, 2018 · 8 comments
Closed

[10.0] web_responsive: security issue showing all menus #850

mohamedhagag opened this issue Jan 30, 2018 · 8 comments
Assignees
Milestone

Comments

@mohamedhagag
Copy link

Dears,
I would like to congratulate all of you on the great work and effort being done here in OCA Repos.
We found a security flaw in the latest web responsive module starting from the version providing search in the drawer.
the security issue is that all users can access all menus when searching in the drawer which exposes security.
even the user can open the menu and see all records that he should not see.

Regards,

@pedrobaeza
Copy link
Member

Are you sure about this? I think you are only able to search on allowed menus...

@mohamedhagag
Copy link
Author

One of our cutomers who is paranoid about security discovered this and we tested it and found it real to some level.
For ex. the sales user who have 'Own docs only' group permission can see and access all other users' invoices and can see the amounts and other info in the tree view, but he can't open the form view and see all other info.

I can record a video and put the url here if you want to see it in action.
Regards,

@pedrobaeza
Copy link
Member

I think that's totally unrelated to this modules, as this is controlled at another level: record rules. web_responsive has nothing to do with that. It only opens the action window, but if there's some record rules, they are applied at ORM level. Please try to reproduce the same on runbot.

@mohamedhagag
Copy link
Author

I tested it on OCA's /web runbot and recorded below video to show what I mean.

Runbot DB: http://3316021-10-0-929879.runbot2.odoo-community.org/web#min=1&limit=80&view_type=list&model=res.users&action=71

Video URL: https://inet.dvit.me/share/s/G_okeMrDSI2AeHYjkC4Llg

@FLovison
Copy link

FLovison commented Feb 8, 2018

I have also verified the same issue ...

@yajo yajo added this to the 10.0 milestone Feb 19, 2018
@pedrobaeza pedrobaeza assigned yajo and unassigned lasley Apr 10, 2018
@pedrobaeza
Copy link
Member

@yajo @Tardo can you confirm this issue?

@Tardo
Copy link
Member

Tardo commented Jul 4, 2018

I think that it's a permissions issue not related with "web_responsive" module... with correct access rights Odoo deny access to the views correctly...

For me the problem it's that the search feature returns entries that you really don't have access to see. (Odoo launch access rights exception correctly if you select them)

** Tested on local machine

Query for search menu entries: https://github.com/OCA/web/blob/10.0/web_responsive/static/src/js/web_responsive.js#L316
Link to launch action: https://github.com/OCA/web/blob/10.0/web_responsive/static/src/xml/app_drawer_menu_search.xml#L8

@pedrobaeza
Copy link
Member

Yeah, then it seems we have to limit to the actual menus that are visible.

yajo added a commit to Tecnativa/web that referenced this issue Aug 2, 2018
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
yajo added a commit to Tecnativa/web that referenced this issue Aug 2, 2018
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
yajo added a commit to Tecnativa/web that referenced this issue Aug 27, 2018
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
yajo added a commit to Tecnativa/web that referenced this issue Oct 5, 2018
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
yajo added a commit to Tecnativa/web that referenced this issue Dec 10, 2018
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
tschanzt pushed a commit to camptocamp/web that referenced this issue Jun 19, 2019
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
Tardo pushed a commit to Tecnativa/web that referenced this issue Sep 30, 2019
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
Tardo pushed a commit to Tecnativa/web that referenced this issue Oct 13, 2019
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
pierre-pizzetta pushed a commit to pierre-pizzetta/web that referenced this issue Oct 17, 2020
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
SplashS pushed a commit to SplashS/web that referenced this issue Feb 11, 2021
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
SplashS pushed a commit to SplashS/web that referenced this issue Mar 17, 2021
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
SplashS pushed a commit to SplashS/web that referenced this issue Oct 21, 2021
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
SplashS pushed a commit to SplashS/web that referenced this issue Nov 15, 2021
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
bvanjeelharia pushed a commit to bvanjeelharia/web that referenced this issue Feb 6, 2023
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
bvanjeelharia pushed a commit to bvanjeelharia/web that referenced this issue Feb 6, 2023
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
bvanjeelharia pushed a commit to bvanjeelharia/web that referenced this issue Feb 7, 2023
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
bvanjeelharia pushed a commit to bvanjeelharia/web that referenced this issue Mar 1, 2023
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
TesaLazarenko pushed a commit to TesaLazarenko/oca_web that referenced this issue Nov 17, 2023
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
davidtranhp pushed a commit to davidtranhp/web that referenced this issue Feb 7, 2024
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
davidtranhp pushed a commit to davidtranhp/web that referenced this issue Feb 7, 2024
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
kobros-tech pushed a commit to kobros-tech/web that referenced this issue Dec 23, 2024
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
chaule97 pushed a commit to chaule97/web that referenced this issue Jan 14, 2025
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
kobros-tech pushed a commit to kobros-tech/web that referenced this issue Jan 27, 2025
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
chaule97 pushed a commit to chaule97/web that referenced this issue Apr 14, 2025
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix OCA#850.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants