Skip to content

Commit e0012a1

Browse files
1 parent f1e5211 commit e0012a1

2 files changed

Lines changed: 134 additions & 0 deletions

File tree

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-4rv8-5cmm-2r22",
4+
"modified": "2026-02-28T02:07:15Z",
5+
"published": "2026-02-28T02:07:15Z",
6+
"aliases": [
7+
"CVE-2026-28280"
8+
],
9+
"summary": "osctrl has Stored Cross-Site Scripting (XSS) in On-Demand Query List",
10+
"details": "### Summary\nA stored Cross-site Scripting (XSS) vulnerability exists in the `osctrl-admin` on-demand query list. A user with query-level permissions can inject arbitrary JavaScript via the query parameter when running an on-demand query. The payload is stored and executes in the browser of any user (including administrators) who visits the query list page. This can be chained with CSRF token extraction to escalate privileges and take actions as the logged in user.\n\n### Impact\nAn attacker with query-level permissions (the lowest privilege tier) can execute arbitrary JavaScript in the browsers of all users who view the query list. Depending on their level of access, it can lead to full platform compromise if an administrator executes the payload.\n\n### Patches\nFixed in osctrl `v0.5.0`. Users should upgrade immediately.\n\n### Workarounds\nRestrict query-level permissions to trusted users. Monitor query list for suspicious payloads. Review osctrl user accounts for unauthorized administrators.\n\n### References\n- https://github.com/jmpsec/osctrl/pull/778\n- https://cwe.mitre.org/data/definitions/79.html\n\n### Credits\n\nLeon Johnson and Kwangyun Keum from TikTok USDS JV Offensive Security Operations (Offensive Privacy Team) \n\nhttps://github.com/Kwangyun → @Kwangyun\n\nhttps://github.com/sho-luv → @sho-luv",
11+
"severity": [
12+
{
13+
"type": "CVSS_V3",
14+
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "Go",
21+
"name": "github.com/jmpsec/osctrl"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0"
29+
},
30+
{
31+
"fixed": "0.5.0"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
38+
"references": [
39+
{
40+
"type": "WEB",
41+
"url": "https://github.com/jmpsec/osctrl/security/advisories/GHSA-4rv8-5cmm-2r22"
42+
},
43+
{
44+
"type": "ADVISORY",
45+
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-28280"
46+
},
47+
{
48+
"type": "WEB",
49+
"url": "https://github.com/jmpsec/osctrl/pull/778"
50+
},
51+
{
52+
"type": "PACKAGE",
53+
"url": "https://github.com/jmpsec/osctrl"
54+
}
55+
],
56+
"database_specific": {
57+
"cwe_ids": [
58+
"CWE-79"
59+
],
60+
"severity": "MODERATE",
61+
"github_reviewed": true,
62+
"github_reviewed_at": "2026-02-28T02:07:15Z",
63+
"nvd_published_at": "2026-02-26T23:16:37Z"
64+
}
65+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-rchw-322g-f7rm",
4+
"modified": "2026-02-28T02:05:48Z",
5+
"published": "2026-02-28T02:05:48Z",
6+
"aliases": [
7+
"CVE-2026-28279"
8+
],
9+
"summary": "osctrl is Vulnerable to OS Command Injection via Environment Configuration",
10+
"details": "### Summary\nAn OS command injection vulnerability exists in the `osctrl-admin` environment configuration. An authenticated administrator can inject arbitrary shell commands via the hostname parameter when creating or editing environments. These commands are embedded into enrollment one-liner scripts generated using Go's `text/template` package (which does not perform shell escaping) and execute on every endpoint that enrolls using the compromised environment.\n\n### Impact\nAn attacker with administrator access can achieve remote code execution on every endpoint that enrolls using the compromised environment. Commands execute as root/SYSTEM (the privilege level used for osquery enrollment) before osquery is installed, leaving no agent-level audit trail. This enables backdoor installation, credential exfiltration, and full endpoint compromise.\n\n### Patches\nFixed in osctrl `v0.5.0`. Users should upgrade immediately.\n\n### Workarounds\nRestrict osctrl administrator access to trusted personnel. Review existing environment configurations for suspicious hostnames. Monitor enrollment scripts for unexpected commands.\n\n### Credits\n\nLeon Johnson and Kwangyun Keum from TikTok USDS JV Offensive Security Operations (Offensive Privacy Team)\n\nhttps://github.com/Kwangyun → @Kwangyun\nhttps://github.com/sho-luv → @sho-luv",
11+
"severity": [
12+
{
13+
"type": "CVSS_V3",
14+
"score": "CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "Go",
21+
"name": "github.com/jmpsec/osctrl"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0"
29+
},
30+
{
31+
"fixed": "0.5.0"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
38+
"references": [
39+
{
40+
"type": "WEB",
41+
"url": "https://github.com/jmpsec/osctrl/security/advisories/GHSA-rchw-322g-f7rm"
42+
},
43+
{
44+
"type": "ADVISORY",
45+
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-28279"
46+
},
47+
{
48+
"type": "WEB",
49+
"url": "https://github.com/jmpsec/osctrl/pull/777"
50+
},
51+
{
52+
"type": "WEB",
53+
"url": "https://github.com/jmpsec/osctrl/pull/780"
54+
},
55+
{
56+
"type": "PACKAGE",
57+
"url": "https://github.com/jmpsec/osctrl"
58+
}
59+
],
60+
"database_specific": {
61+
"cwe_ids": [
62+
"CWE-78"
63+
],
64+
"severity": "HIGH",
65+
"github_reviewed": true,
66+
"github_reviewed_at": "2026-02-28T02:05:48Z",
67+
"nvd_published_at": "2026-02-26T23:16:37Z"
68+
}
69+
}

0 commit comments

Comments
 (0)