Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0041748 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2019-09-04 12:42 | 2019-09-26 15:10 | |||
Reporter | cberner | View Status | public | |||||
Assigned To | cberner | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR19Q4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | abbc789f0146 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | AugustoMauch | |||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0041748: DeleteImageActionHandler is vulnerable to CSRF attacks | |||||||
Description | DeleteImageActionHandler is not protected against CSRF attacks | |||||||
Steps To Reproduce | - | |||||||
Proposed Solution | Extract code corresponding to CSRF token validation from DataSourceServlet to an utility class. Add CSRF token validation to DeleteImageActionHandler and to the call function. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||
|
![]() |
|
(0114797) hgbot (developer) 2019-09-26 09:47 |
Repository: erp/devel/pi Changeset: abbc789f0146476b5566216f591839f08cb65c5c Author: Cristian Berner <cristian.berner <at> openbravo.com> Date: Wed Sep 25 16:59:12 2019 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/abbc789f0146476b5566216f591839f08cb65c5c [^] fixes issue 41748: Adds CSRF token verification on image deletion on new record DeleteImageActionHandler now checks for CSRF token to make sure there's no request forgery. CSRF checking code has been moved to CsrfUtil class from DataSourceServlet so it can be accessed from other classes. CSRF token is sent on image deletion from ob-formitem-image only on new records. --- M modules/org.openbravo.client.application/src/org/openbravo/client/application/DeleteImageActionHandler.java M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-image.js M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceServlet.java A src/org/openbravo/erpCommon/utility/CsrfUtil.java --- |
(0114798) AugustoMauch (administrator) 2019-09-26 09:47 |
Code reviewed and verified |
(0114811) hudsonbot (viewer) 2019-09-26 15:10 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/409f4217568a [^] Maturity status: Test |
![]() |
|||
Date Modified | Username | Field | Change |
2019-09-04 12:42 | cberner | New Issue | |
2019-09-04 12:42 | cberner | Assigned To | => platform |
2019-09-04 12:42 | cberner | OBNetwork customer | => No |
2019-09-04 12:42 | cberner | Modules | => Core |
2019-09-04 12:42 | cberner | Triggers an Emergency Pack | => No |
2019-09-04 12:42 | cberner | Assigned To | platform => cberner |
2019-09-04 12:42 | cberner | Status | new => scheduled |
2019-09-04 12:43 | cberner | Review Assigned To | => AugustoMauch |
2019-09-04 12:43 | cberner | Relationship added | related to 0034491 |
2019-09-04 12:43 | cberner | Relationship added | related to 0039123 |
2019-09-20 10:13 | AugustoMauch | Description Updated | View Revisions |
2019-09-26 09:47 | hgbot | Checkin | |
2019-09-26 09:47 | hgbot | Note Added: 0114797 | |
2019-09-26 09:47 | hgbot | Status | scheduled => resolved |
2019-09-26 09:47 | hgbot | Resolution | open => fixed |
2019-09-26 09:47 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/abbc789f0146476b5566216f591839f08cb65c5c [^] |
2019-09-26 09:47 | AugustoMauch | Note Added: 0114798 | |
2019-09-26 09:47 | AugustoMauch | Status | resolved => closed |
2019-09-26 09:47 | AugustoMauch | Fixed in Version | => 3.0PR19Q4 |
2019-09-26 15:10 | hudsonbot | Checkin | |
2019-09-26 15:10 | hudsonbot | Note Added: 0114811 |
Copyright © 2000 - 2009 MantisBT Group |