nday
GHSA-7xw9-549r-8jrc

DIRAC: SQL injection and lack of access control in PilotManager service

披露于 。已有补丁记录,修复版本有 DIRAC 8.0.79、DIRAC 9.0.22 等 3 个。四个 PoC 来源都还没有收录。尚未列入 CISA KEV。

标签 漏洞类型SQL injectionbroken access control 攻击途径网络无需用户交互 软件包生态PyPI
这些标签的依据

这些标签由 nday 按固定规则从下列事实自动推导,不是 NVD、编号分配方或其他来源给出的。全部标签和规则见 ~/tags。

SQL injection
CWE-89(来源:GitHub 公告 GHSA-7xw9-549r-8jrc)
broken access control
CWE-284(来源:GitHub 公告 GHSA-7xw9-549r-8jrc)
网络
GitHub 公告 GHSA-7xw9-549r-8jrc 给出的 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N(CVSS 3.1)中的 AV:N
无需用户交互
GitHub 公告 GHSA-7xw9-549r-8jrc 给出的 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N(CVSS 3.1)中的 UI:N
PyPI
GHSA-7xw9-549r-8jrc:pip 包 DIRAC
当前阶段
PAT
披露
CVSS
8.5 HIGH v3.1

生命周期

横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
07-13T18:38Z
PAT补丁
DIRAC 8.0.79 等 3 个
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录

摘要

### Details A number of the functions in PilotManager pass parameters directly through to the database layer, which then does not do any escaping on the parameters. For example setPilotStatus: https://github.com/DIRACGrid/DIRAC/blob/1738e7c6d2f31d26f1364255d9d2e87b4896c922/src/DIRAC/WorkloadManagementSystem/Service/PilotManagerHandler.py#L343-L349

https://github.com/DIRACGrid/DIRAC/blob/1738e7c6d2f31d26f1364255d9d2e87b4896c922/src/DIRAC/WorkloadManagementSystem/DB/PilotAgentsDB.py#L117

This won't accept multiple statements separated by a semicolon, but a carefully crafted set of parameters containing SQL escapes would likely be able to change or return other database entries.

Further to this, the PilotManager access control is only set to "authenticated"; this allows these functions to be called by any user. This allows any user to manage (e.g. delete, read output of) any pilot pilot job: https://github.com/DIRACGrid/DIRAC/blob/1738e7c6d2f31d26f1364255d9d2e87b4896c922/src/DIRAC/WorkloadManagementSystem/ConfigTemplate.cfg#L111-L118

This is fixed by changing the SQL statements to use proper parameter substitution and providing a suitable set of access rules for the exported pilot management functions.

### Patched versions: https://pypi.org/project/DIRAC/8.0.79/ https://pypi.org/project/DIRAC/9.0.22/ https://pypi.org/project/DIRAC/9.1.10/

以上是 GitHub 安全公告 GHSA-7xw9-549r-8jrc 中的原文,未经改写。

利用条件

按 CVSS 向量说明攻击需要的条件。
攻击途径 AV:N
网络:攻击者只要能通过网络访问到目标即可
攻击复杂度 AC:L
低:不依赖特殊条件,攻击者可预期重复成功
所需权限 PR:L
低:普通用户权限
用户交互 UI:N
无:除攻击者外不需要任何人配合

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N

CVSS 3.1 向量,来自 GitHub 安全公告 GHSA-7xw9-549r-8jrc。

事件记录

+DIS披露

ghsa 报告了披露事件。

来源 ghsa · 本站 批量导入 · 原始记录
{
  "id": 473998,
  "type": "disclosed",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-7xw9-549r-8jrc",
  "occurred_at": "2026-07-13T18:38:13Z",
  "observed_at": "2026-11-16T19:07:30.503253Z",
  "is_backfill": true,
  "dedupe_key": "GHSA-7xw9-549r-8jrc",
  "detail": {
    "state": "PUBLISHED",
    "ghsa_id": "GHSA-7xw9-549r-8jrc",
    "withdrawn_at": null
  }
}
时间未知来源未给出时间
+PAT补丁发布

公告给出修复版本 DIRAC 8.0.79、DIRAC 9.0.22、DIRAC 9.1.10。公告附有修复提交。公告本身发布于 ,补丁实际发布时间没有记录。

来源 ghsa · 本站 批量导入 · 原始记录
{
  "id": 473999,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-7xw9-549r-8jrc",
  "occurred_at": null,
  "observed_at": "2026-11-16T19:07:30.503253Z",
  "is_backfill": true,
  "dedupe_key": "GHSA-7xw9-549r-8jrc",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 8.5,
        "vector_string": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "name": "Improper Neutralization of Special Elements used in an SQL Command",
        "cwe_id": "CWE-89"
      },
      {
        "name": "Improper Access Control",
        "cwe_id": "CWE-284"
      }
    ],
    "ghsa_id": "GHSA-7xw9-549r-8jrc",
    "packages": [
      {
        "name": "DIRAC",
        "ecosystem": "pip",
        "first_patched_version": "8.0.79",
        "vulnerable_version_range": ">= 6, < 8.0.79"
      },
      {
        "name": "DIRAC",
        "ecosystem": "pip",
        "first_patched_version": "9.0.22",
        "vulnerable_version_range": ">= 8.1.0a1, < 9.0.22"
      },
      {
        "name": "DIRAC",
        "ecosystem": "pip",
        "first_patched_version": "9.1.10",
        "vulnerable_version_range": ">= 9.1.0, < 9.1.10"
      }
    ],
    "severity": "high",
    "references": [
      "https://github.com/DIRACGrid/DIRAC/security/advisories/GHSA-7xw9-549r-8jrc",
      "https://pypi.org/project/DIRAC/8.0.79",
      "https://pypi.org/project/DIRAC/9.0.22",
      "https://pypi.org/project/DIRAC/9.1.10",
      "https://github.com/DIRACGrid/DIRAC/commit/8731de576cf96826dbbf505508526ada31efb927",
      "https://github.com/DIRACGrid/DIRAC/commit/f67f754d4eef5bf40a8223dab77cf2591808031f",
      "https://github.com/advisories/GHSA-7xw9-549r-8jrc"
    ],
    "fix_commit_urls": [
      "https://github.com/DIRACGrid/DIRAC/commit/8731de576cf96826dbbf505508526ada31efb927",
      "https://github.com/DIRACGrid/DIRAC/commit/f67f754d4eef5bf40a8223dab77cf2591808031f"
    ],
    "github_reviewed_at": "2026-07-13T18:38:13Z",
    "advisory_updated_at": "2026-11-10T19:38:10Z",
    "source_code_location": "https://github.com/DIRACGrid/DIRAC",
    "advisory_published_at": "2026-07-13T18:38:13Z"
  }
}

纠错

报告错误或缺失

页面有误或缺失?告诉编辑;采纳后在本页修订记录公开说明,上游数据不会被改动。

讨论

0 条评论

还没有评论。