Bug 541870 (CVE-2018-12550) - mosquitto: An empty ACL file grant all permissions to clients
Summary: mosquitto: An empty ACL file grant all permissions to clients
Status: RESOLVED FIXED
Alias: CVE-2018-12550
Product: Community
Classification: Eclipse Foundation
Component: Vulnerability Reports (show other bugs)
Version: unspecified   Edit
Hardware: All Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Security vulnerabilitied reported against Eclipse projects CLA
QA Contact:
URL:
Whiteboard:
Keywords: security
Depends on:
Blocks:
 
Reported: 2018-12-03 19:30 EST by Yan Jia CLA
Modified: 2019-02-08 16:45 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yan Jia CLA 2018-12-03 19:30:32 EST
This may accur when developers want to revoke the permission of a client. If the client is the last one in the ACL config file, it will be granted all permissions. For example:

1. A developer runs mosquitto: mosquitto -c mosquitto.conf
And the acl_file contains:
    topic readwrite a/a
This means that the clients can only access the topic "a/a"

2. To revoke the permission of clients, the developer adds a "#" at the first of that line.

3. However, the clients are granted all permissions, which is against the will of developers. Because the acl_file is empty.
Comment 1 Roger Light CLA 2019-01-23 18:39:02 EST
Could I have a CVE assigned for this please, I'll provide the CVSS and description later.
Comment 2 Roger Light CLA 2019-01-30 10:52:02 EST
Description:

If Mosquitto is configured to use an ACL file, and that ACL file is empty, or contains only comments or blank lines, then Mosquitto will treat this as though no ACL file has been defined and use a default allow policy. The new behaviour is to have an empty ACL file mean that all access is denied, which is not a useful configuration but is not unexpected.

Affects versions 1.0 to 1.5.5 inclusive.

CVSS v2: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator?vector=(AV:N/AC:H/Au:S/C:C/I:C/A:N/E:ND/RL:OF/RC:C)

CVSS v3: https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N/E:X/RL:O/RC:C
Comment 3 Roger Light CLA 2019-02-05 10:29:06 EST
https://cwe.mitre.org/data/definitions/440.html