|
| 1 | +--- |
| 2 | +layout: advisory |
| 3 | +title: 'CVE-2026-42205 (avo): Broken Access Control Through Unauthorized Execution |
| 4 | + of Arbitrary Action Classes Across Resources' |
| 5 | +comments: false |
| 6 | +categories: |
| 7 | +- avo |
| 8 | +advisory: |
| 9 | + gem: avo |
| 10 | + cve: 2026-42205 |
| 11 | + ghsa: qc5p-3mg5-9fh8 |
| 12 | + url: https://github.com/avo-hq/avo/security/advisories/GHSA-qc5p-3mg5-9fh8 |
| 13 | + title: Broken Access Control Through Unauthorized Execution of Arbitrary Action |
| 14 | + Classes Across Resources |
| 15 | + date: 2026-04-24 |
| 16 | + description: |- |
| 17 | + ### Summary |
| 18 | +
|
| 19 | + A critical Broken Access Control vulnerability was identified in the |
| 20 | + `ActionsController` of the Avo framework (v3.x). Due to insecure |
| 21 | + action lookup logic, an authenticated user can execute any Action |
| 22 | + class (descendants of `Avo::BaseAction`) on any resource, even if |
| 23 | + the action is not registered for that specific resource. This leads |
| 24 | + to Privilege Escalation and unauthorized data manipulation across |
| 25 | + the entire application. |
| 26 | +
|
| 27 | + ### Details |
| 28 | +
|
| 29 | + The vulnerability exists in the `action_class` method within |
| 30 | + `app/controllers/avo/actions_controller.rb`. |
| 31 | +
|
| 32 | + #### Vulnerable Code |
| 33 | +
|
| 34 | + ```ruby |
| 35 | + def action_class |
| 36 | + # It searches through ALL descendants of BaseAction without |
| 37 | + # resource validation. |
| 38 | + Avo::BaseAction.descendants.find do |action| |
| 39 | + action.to_s == params[:action_id] |
| 40 | + end |
| 41 | + end |
| 42 | + ``` |
| 43 | +
|
| 44 | + The controller identifies the action class to execute solely based |
| 45 | + on the `params[:action_id]` by searching through all `BaseAction` |
| 46 | + descendants. It fails to verify whether the requested action is |
| 47 | + actually permitted or registered for the resource context specified |
| 48 | + in the request URL (e.g., `/admin/resources/posts/actions`). |
| 49 | +
|
| 50 | + Consequently, an attacker can invoke sensitive actions (e.g., |
| 51 | + `Avo::Actions::ToggleAdmin`) through an unrelated resource endpoint |
| 52 | + (e.g., `Post`), bypassing the intended resource-action mapping. |
| 53 | +
|
| 54 | + ### Impact |
| 55 | +
|
| 56 | + This flaw results in significant security risks: |
| 57 | +
|
| 58 | + - **Privilege Escalation:** An authenticated user with low privileges |
| 59 | + can execute administrative actions (like toggling admin roles) to |
| 60 | + escalate their own or others' permissions. |
| 61 | + - **Unauthorized Operations:** Actions designed for restricted |
| 62 | + resources can be triggered against any record ID in the database. |
| 63 | + - **Data Integrity Compromise:** Attackers can perform unauthorized |
| 64 | + destructive operations (e.g., Delete, Archive, or Update) on records |
| 65 | + they should not have access to. |
| 66 | +
|
| 67 | + ### CREDIT |
| 68 | +
|
| 69 | + Illunight |
| 70 | + cvss_v3: 8.8 |
| 71 | + patched_versions: |
| 72 | + - ">= 3.31.1" |
| 73 | + related: |
| 74 | + url: |
| 75 | + - https://nvd.nist.gov/vuln/detail/CVE-2026-42205 |
| 76 | + - https://github.com/avo-hq/avo/releases/tag/v3.31.1 |
| 77 | + - https://github.com/avo-hq/avo/security/advisories/GHSA-qc5p-3mg5-9fh8 |
| 78 | + - https://github.com/advisories/GHSA-qc5p-3mg5-9fh8 |
| 79 | +--- |
0 commit comments