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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049053
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] A. Platformcriticalalways2022-04-12 12:272022-04-26 14:28
Reporterfermin_ostivarView Statuspublic 
Assigned ToAugustoMauch 
PriorityimmediateResolutionfixedFixed in VersionPR21Q4.5
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget VersionPR21Q4.5
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049053: XML parsers XXE attacks vulnerabilty

DescriptionWe have detected a SaxParser vulnerable to XXE attach in the class TranslationManager

      final SAXParserFactory factory = SAXParserFactory.newInstance();
      final SAXParser parser = factory.newSAXParser();
      parser.parse(in, handler);


https://gitlab.com/openbravo/product/openbravo/-/blob/master/src/org/openbravo/erpCommon/ad_forms/TranslationManager.java#L641 [^]
https://gitlab.com/openbravo/product/openbravo/-/blob/master/src/org/openbravo/erpCommon/ad_forms/TranslationManager.java#L666 [^]
Steps To ReproduceN/A
Proposed SolutionTo create a new get method in the class XMLUtil.java as newSAXReader and to call it in the lines reported previously
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks design defect 0049039 closedAugustoMauch XML parsers XXE attacks vulnerabilty 

-  Notes
(0136727)
hgbot (developer)
2022-04-25 17:17

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/569 [^]
(0136761)
hgbot (developer)
2022-04-26 14:28

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 619d17b16f2d3783124d057292648ba2f08e43c6
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 26-04-2022 12:27:36
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/619d17b16f2d3783124d057292648ba2f08e43c6 [^]

Fixes ISSUE-49053: Provides a safe way to create instances of SAXParser

A new method has been created in XMLUtil to create instances of SAXParser that are not vulnerable to XXE attacks

---
M src/org/openbravo/dal/xml/XMLUtil.java
M src/org/openbravo/erpCommon/ad_forms/TranslationManager.java
---
(0136762)
hgbot (developer)
2022-04-26 14:28

Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/569 [^]

- Issue History
Date Modified Username Field Change
2022-04-13 13:24 AugustoMauch Type design defect => backport
2022-04-13 13:24 AugustoMauch Target Version => PR21Q4.5
2022-04-25 17:17 hgbot Note Added: 0136727
2022-04-26 14:27 hgbot Resolution open => fixed
2022-04-26 14:27 hgbot Status scheduled => closed
2022-04-26 14:27 hgbot Fixed in Version => PR21Q4.5
2022-04-26 14:28 hgbot Note Added: 0136761
2022-04-26 14:28 hgbot Note Added: 0136762


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker