Language: Java
Label: vulnerable
CWE: CWE-611 \u2014 Improper Restriction of XML External Entity Reference
The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.

Code:
	private synchronized void initExtensionPoints() {
		if (storageTypeMap != null)
			return;
		Map<String, List<CProjectDescriptionStorageTypeProxy>> m = new HashMap<>();
		IExtensionPoint extpoint = Platform.getExtensionRegistry().getExtensionPoint(CCorePlugin.PLUGIN_ID,
				CPROJ_DESC_STORAGE_EXT_ID);
		for (IExtension extension : extpoint.getExtensions()) {
			for (IConfigurationElement configEl : extension.getConfigurationElements()) {
				if (configEl.getName().equalsIgnoreCase(CPROJ_STORAGE_TYPE)) {
					CProjectDescriptionStorageTypeProxy type = initStorageType(configEl);
					if (type != null) {
						if (!m.containsKey(type.id))
							m.put(type.id, new LinkedList<CProjectDescriptionStorageTypeProxy>());
						m.get(type.id).add(type);
					}
				}
			}
		}
		storageTypeMap = m;
	}