{"id":"GHSA-p75c-5x3h-cxcg","summary":"Fat Free CRM vulnerable to Remote Denial of Service via Tasks endpoint","details":"### Impact\nAn authenticated user can perform a remote Denial of Service attack against Fat Free CRM.\n\nThis vulnerability has been assigned the CVE identifier: CVE-2022-39281\n\nAffected versions: All\nNot affected: None\nFixed versions: 0.20.1\n\nAll users running an affected release should either upgrade or apply the patch immediately.\n\n### Releases\nFixed versions: 0.20.1 and above\n\n### Patches\n\nIf you are unable to upgrade immediately, you should apply the following patch.\n\n```\ndiff --git a/app/models/polymorphic/task.rb b/app/models/polymorphic/task.rb\nindex d3d5c32c..7cdb24d6 100644\n--- a/app/models/polymorphic/task.rb\n+++ b/app/models/polymorphic/task.rb\n@@ -189,6 +189,7 @@ class Task \u003c ActiveRecord::Base\n   #----------------------------------------------------------------------------\n   def self.bucket_empty?(bucket, user, view = \"pending\")\n     return false if bucket.blank? || !ALLOWED_VIEWS.include?(view)\n+    return false unless Setting.task_bucket.map(&:to_s).include?(bucket.to_s)\n\n     if view == \"assigned\"\n       assigned_by(user).send(bucket).pending.count\n```\n\n### Credits\n\nThanks to @p- for reporting this and working with us to responsibly disclose this vulnerability.\n\n### Further information\nIf you have any questions or comments about this advisory, please Open an issue in [GitHub Issue Tracker](https://github.com/fatfreecrm/fat_free_crm/issues)\n\n","aliases":["CVE-2022-39281"],"modified":"2023-11-08T04:10:17.591209Z","published":"2022-10-07T21:19:01Z","database_specific":{"nvd_published_at":"2022-10-08T01:15:00Z","cwe_ids":["CWE-20"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-10-07T21:19:01Z"},"references":[{"type":"WEB","url":"https://github.com/fatfreecrm/fat_free_crm/security/advisories/GHSA-p75c-5x3h-cxcg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39281"},{"type":"WEB","url":"https://github.com/fatfreecrm/fat_free_crm/commit/c85a2546348c2692d32f952c753f7f0b43d1ca71"},{"type":"PACKAGE","url":"https://github.com/fatfreecrm/fat_free_crm"},{"type":"WEB","url":"https://github.com/fatfreecrm/fat_free_crm/releases/tag/v0.20.1"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/fat_free_crm/CVE-2022-39281.yml"}],"affected":[{"package":{"name":"fat_free_crm","ecosystem":"RubyGems","purl":"pkg:gem/fat_free_crm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.20.1"}]}],"versions":["0.11.0","0.11.1","0.11.2","0.11.3","0.11.4","0.12.0","0.12.1","0.12.2","0.12.3","0.13.0","0.13.1","0.13.2","0.13.3","0.13.4","0.13.5","0.13.6","0.14.0","0.14.1","0.14.2","0.15.0","0.15.0.beta","0.15.0.beta.2","0.15.1","0.15.2","0.16.0","0.16.1","0.16.2","0.16.3","0.16.4","0.17.1","0.17.2","0.17.3","0.18.0","0.18.1","0.18.2","0.19.0","0.19.2","0.20.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-p75c-5x3h-cxcg/GHSA-p75c-5x3h-cxcg.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}