Program: CWE-20
Project: CVE-2021-39186
Buggy source:
{
	"name": "GlobalNewFiles",
	"author": [
		"John Lewis",
		"Paladox",
		"Southparkfan",
		"Universal Omega"
	],
	"url": "//github.com/miraheze/GlobalNewFiles",
	"descriptionmsg": "globalnewfiles-description",
	"license-name": "GPL-3.0-or-later",
	"type": "specialpage",
	"requires": {
		"MediaWiki": ">= 1.36.0",
		"extensions": {
			"CreateWiki": "*"
		}
	},
	"MessagesDirs": {
		"GlobalNewFiles": [
			"i18n"
		]
	},
	"ExtensionMessagesFiles": {
		"GlobalNewFilesAliases": "includes/GlobalNewFilesAliases.php"
	},
	"AvailableRights": [
		"viewglobalprivatefiles"
	],
	"AutoloadClasses": {
		"GlobalNewFilesHooks": "includes/GlobalNewFilesHooks.php",
		"GlobalNewFilesPager": "includes/GlobalNewFilesPager.php",
		"SpecialGlobalNewFiles": "includes/SpecialGlobalNewFiles.php",
		"GlobalNewFilesInsertJob": "includes/jobs/GlobalNewFilesInsertJob.php",
		"GlobalNewFilesDeleteJob": "includes/jobs/GlobalNewFilesDeleteJob.php",
		"GlobalNewFilesMoveJob": "includes/jobs/GlobalNewFilesMoveJob.php"
	},
	"JobClasses": {
		"GlobalNewFilesInsertJob": "GlobalNewFilesInsertJob",
		"GlobalNewFilesDeleteJob": "GlobalNewFilesDeleteJob",
		"GlobalNewFilesMoveJob": "GlobalNewFilesMoveJob"
	},
	"SpecialPages": {
		"GlobalNewFiles": "SpecialGlobalNewFiles"
	},
	"Hooks": {
		"CreateWikiTables": [
			"GlobalNewFilesHooks::onCreateWikiTables"
		],
		"LoadExtensionSchemaUpdates": [
			"GlobalNewFilesHooks::onLoadExtensionSchemaUpdates"
		],
		"FileDeleteComplete": [
			"GlobalNewFilesHooks::onFileDeleteComplete"
		],
		"PageMoveComplete": [
			"GlobalNewFilesHooks::onPageMoveComplete"
		],
		"UploadComplete": [
			"GlobalNewFilesHooks::onUploadComplete"
		]
	},
	"ConfigRegistry": {
		"globalnewfiles": "GlobalVarConfig::newInstance"
	},
	"manifest_version": 2
}


Fixed version (ground truth):
{
	"name": "GlobalNewFiles",
	"author": [
		"John Lewis",
		"Paladox",
		"Southparkfan",
		"Universal Omega"
	],
	"url": "//github.com/miraheze/GlobalNewFiles",
	"descriptionmsg": "globalnewfiles-description",
	"license-name": "GPL-3.0-or-later",
	"type": "specialpage",
	"requires": {
		"MediaWiki": ">= 1.36.0",
		"extensions": {
			"CreateWiki": "*"
		}
	},
	"MessagesDirs": {
		"GlobalNewFiles": [
			"i18n"
		]
	},
	"ExtensionMessagesFiles": {
		"GlobalNewFilesAliases": "includes/GlobalNewFilesAliases.php"
	},
	"AvailableRights": [
		"viewglobalprivatefiles"
	],
	"AutoloadClasses": {
		"GlobalNewFilesHooks": "includes/GlobalNewFilesHooks.php",
		"GlobalNewFilesPager": "includes/GlobalNewFilesPager.php",
		"SpecialGlobalNewFiles": "includes/SpecialGlobalNewFiles.php",
		"GlobalNewFilesInsertJob": "includes/jobs/GlobalNewFilesInsertJob.php",
		"GlobalNewFilesDeleteJob": "includes/jobs/GlobalNewFilesDeleteJob.php",
		"GlobalNewFilesMoveJob": "includes/jobs/GlobalNewFilesMoveJob.php"
	},
	"JobClasses": {
		"GlobalNewFilesInsertJob": "GlobalNewFilesInsertJob",
		"GlobalNewFilesDeleteJob": "GlobalNewFilesDeleteJob",
		"GlobalNewFilesMoveJob": "GlobalNewFilesMoveJob"
	},
	"SpecialPages": {
		"GlobalNewFiles": {
			"class": "SpecialGlobalNewFiles",
			"services": [
				"LinkRenderer"
			]
		}
	},
	"Hooks": {
		"CreateWikiTables": [
			"GlobalNewFilesHooks::onCreateWikiTables"
		],
		"LoadExtensionSchemaUpdates": [
			"GlobalNewFilesHooks::onLoadExtensionSchemaUpdates"
		],
		"FileDeleteComplete": [
			"GlobalNewFilesHooks::onFileDeleteComplete"
		],
		"PageMoveComplete": [
			"GlobalNewFilesHooks::onPageMoveComplete"
		],
		"UploadComplete": [
			"GlobalNewFilesHooks::onUploadComplete"
		]
	},
	"ConfigRegistry": {
		"globalnewfiles": "GlobalVarConfig::newInstance"
	},
	"manifest_version": 2
}