XWiki Commons are technical libraries common to several other top level XWiki projects. The Document script API returns directly a DocumentAuthors allowing to set any authors to the document, which in consequence can allow subsequent executions of scripts since this author is used for checking rights. The problem has been patched in XWiki 14.10 and 14.4.7 by returning a safe script API.
{
"cwe_ids": [
"CWE-648"
]
}[
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2023-29507-0899862c",
"digest": {
"line_hashes": [
"285397197873779972489957272834272170973",
"79969548012995274950373936628247338239",
"5222656509254680006471254636348292317",
"317674232405731194166582250129789568940",
"1786345460590735685928867063035927326",
"124193562424752326028148407017570386872",
"34784887736311344661036271570136980198",
"288737256091871294421441393879995500056",
"222327388409457927178832144348413986168",
"204466045014135139392986802513684113583",
"162160811881079429794926340107139182418",
"130393197160870855745327643197966112588",
"135560433761557512860871916202820089593",
"183561585768336160587504157042675293914",
"69076345538002824735413467080161712207",
"300158233821252551245839735844162920919",
"254778949535633233792066214517092012472",
"118372129799966657123530356248044351528"
],
"threshold": 0.9
},
"source": "https://github.com/xwiki/xwiki-platform/commit/905cdd7c421dbf8c565557cdc773ab1aa9028f83",
"signature_version": "v1",
"target": {
"file": "xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/api/DocumentTest.java"
}
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2023-29507-2e3c4680",
"digest": {
"length": 599.0,
"function_hash": "191589447231400789890908486926056862646"
},
"source": "https://github.com/xwiki/xwiki-platform/commit/905cdd7c421dbf8c565557cdc773ab1aa9028f83",
"signature_version": "v1",
"target": {
"file": "xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/api/Document.java",
"function": "save"
}
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2023-29507-4dcc784c",
"digest": {
"length": 50.0,
"function_hash": "205044551856414866438662909025940991316"
},
"source": "https://github.com/xwiki/xwiki-platform/commit/905cdd7c421dbf8c565557cdc773ab1aa9028f83",
"signature_version": "v1",
"target": {
"file": "xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/api/Document.java",
"function": "getAuthors"
}
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2023-29507-6949780c",
"digest": {
"line_hashes": [
"136203542706314606100395643333948229707",
"222622313404907064122408188724895148092",
"18601401601876166736719796137049916700",
"6513534256860196359361987053334192121",
"253302169299365199340334301323888516355",
"95832038197203841806569357737992364948",
"146976295459013726332819977188799749200",
"31229928828224466808632066724905270515",
"67824579202156303980569197253918802680",
"40140165396904336409190860670917989824",
"198983596758786102153632833518692590512",
"307761946409823186425836376523147927382",
"73333133991199364308798064297134169434",
"97833740929340090853290254486830155459",
"128440889546507359135049613005307558666",
"188841850327438289931794351529281637178",
"85212960207557622921633149994572375235",
"97397019122705273094435997209017938233",
"206597587046559674257344140963915447804",
"280838880231311263623839868505682163170",
"128518389437398849439910757302426350223"
],
"threshold": 0.9
},
"source": "https://github.com/xwiki/xwiki-platform/commit/905cdd7c421dbf8c565557cdc773ab1aa9028f83",
"signature_version": "v1",
"target": {
"file": "xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/api/Document.java"
}
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2023-29507-b711e0ba",
"digest": {
"length": 650.0,
"function_hash": "122574119866430752981632920513731251176"
},
"source": "https://github.com/xwiki/xwiki-platform/commit/905cdd7c421dbf8c565557cdc773ab1aa9028f83",
"signature_version": "v1",
"target": {
"file": "xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/api/Document.java",
"function": "saveAsAuthor"
}
}
]