Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0007709
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 01. General setupmajoralways2009-02-20 10:462009-04-22 00:00
ReporterroklenardicView Statuspublic 
Assigned Toalostale 
PriorityhighResolutionfixedFixed in Version2.50
StatusclosedFix in branchFixed in SCM revisionf432462f35a0
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_10
OS VersionUbuntu 8.10Database version8.3.5Ant version1.7.1
Product VersionpiSCM revision13140 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0007709: Alerts Multitenancy security issue

DescriptionHaving several clients inside the database confuses the alerting feature which in turn shows alerts of all clients when logged in as admin of one particular one.
Steps To Reproduce1) Enter as Sys Admin and go to General Setup || Application || Alert and activate "Customers with exceeded credit" alert
2) Switch to Openbravo Admin and add Openbravo Admin role to the recipients of the alert above
3) go to General Setup || Process Scheduling || Process Request and enter a new record with Process=Alert Process, Timing=Schedule, Frequency=every n minutes, Interval in minutes=1
4) Save
5) click the Schedule Process button
6) Rename reference/importclient/BigBazaar.xml to reference/importclient/AnotherBazaar.xml
7) Switch to Sys Admin role and go to General Setup || Client || Import Client and enter "AnotherBazaar" and confirm. this will import a new client, AnotherBazaar identical to bigbazaar.
8) Switch to Openbravo Admin of the BigBazaar client and see how two alerts appear, both for the same Neil Reiley business partner being over credit, one from BigBazaar and one from another bazaar.

This is a security issue since Openbravo Admin from BigBazaar should not be seeing items from AnotherBazaar's data.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0013811)
roklenardic (developer)
2009-02-20 10:58

Even if one switches to Sys Admin role, the Alert still appears which means there is also a Role security hole.
(0014299)
anthony_wolski (reporter)
2009-03-03 13:04

I am unable to reproduce this bug. I am working on the pre-integration repository (which is now SmallBazaar) and have followed the steps outlined in steps to reproduce. There are 2 alerts in the database, obviously each with a different referencekey_id, and I can log in as Openbravo Admin for each of the clients (SmallBazaar and AnotherBazaar) and each one only has a single alert.
(0014551)
roklenardic (developer)
2009-03-10 14:32

In
rok@nautiloos:~/openbravoTrunk$ hg id
ac6d3962082a+ tip

revision of the devel/main I cannot even see the Alert Management window, I get:
14:22:43 [http-8180-6] ERROR org.openbravo.erpCommon.ad_forms.AlertManagement - Error captured: java.lang.ArrayIndexOutOfBoundsException: 1

On top of that, when trying to copy a client, it doesn't work either, I get
Error occurred
org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
    
So I cannot even check again for this error.
(0014730)
alostale (manager)
2009-03-17 16:42

Just two comments on this issue:

-The example alerts are not properly managing client/organizations, this is going to be fixed.
-It is a known issue that as alerts are executing directly queries on database they can obtain data without any restriction, thus the person in charge of creating alerts must be trusted. This will be faces when moving alerts to dal.
(0014731)
hgbot (developer)
2009-03-17 16:44

Repository: erp/devel/pi
Changeset: f432462f35a0168d397ca536eefb7b84687cc92a
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Mar 17 16:43:29 2009 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/f432462f35a0168d397ca536eefb7b84687cc92a [^]

fixed bug 0007709: Alerts Multitenancy security issue

---
M src-db/database/sourcedata/AD_ALERTRULE.xml
---

- Issue History
Date Modified Username Field Change
2009-02-20 10:46 roklenardic New Issue
2009-02-20 10:46 roklenardic Assigned To => rafaroda
2009-02-20 10:46 roklenardic Regression testing => No
2009-02-20 10:58 roklenardic Note Added: 0013811
2009-02-24 13:03 rafaroda Assigned To rafaroda => anthony_wolski
2009-02-24 13:03 rafaroda Priority normal => high
2009-02-24 13:03 rafaroda Status new => scheduled
2009-03-03 13:04 anthony_wolski Note Added: 0014299
2009-03-03 13:04 anthony_wolski Status scheduled => feedback
2009-03-10 14:32 roklenardic Note Added: 0014551
2009-03-16 11:09 rafaroda Assigned To anthony_wolski => alostale
2009-03-16 11:09 rafaroda Status feedback => scheduled
2009-03-17 16:42 alostale Note Added: 0014730
2009-03-17 16:44 hgbot Checkin
2009-03-17 16:44 hgbot Note Added: 0014731
2009-03-17 16:44 hgbot Status scheduled => resolved
2009-03-17 16:44 hgbot Resolution open => fixed
2009-03-17 16:44 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f432462f35a0168d397ca536eefb7b84687cc92a [^]
2009-04-21 10:33 psarobe Status resolved => closed
2009-04-22 00:00 anonymous sf_bug_id 0 => 2777979


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker