)]}'
{"security-notes/OSSN-0026":[{"author":{"_account_id":11029,"name":"Jamie Finnigan","email":"jamiefinnigan@gmail.com","username":"jamiefinnigan"},"change_message_id":"587212846b03958e7c7f80a757c44d19494e1e87","unresolved":false,"context_lines":[{"line_number":30,"context_line":"the command is not being separated from the parameters, so the shell doesn\u0027t"},{"line_number":31,"context_line":"know where to separate them."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"### Recommended Actions ###"},{"line_number":34,"context_line":"Code with the potential for shell injection vulnerabilities has been identified"},{"line_number":35,"context_line":"in the above mentioned services and versions, but vulnerabilities are possible"},{"line_number":36,"context_line":"in other services as well.  It is recommended to ensure permissions to all"}],"source_content_type":"application/octet-stream","patch_set":2,"id":"fa98f980_37b097dc","line":33,"updated":"2014-09-04 16:34:22.000000000","message":"First sentence isn\u0027t a recommendation - move it up into the prior section?  \n\nCould also drop the \"It is recommended\".  So the Recommended Actions section would just be the last two sentences, starting with \"Ensure permissions to all...\"","commit_id":"196544b462f4f7a03a4abee991b6439a8e4141b3"},{"author":{"_account_id":11861,"name":"Travis McPeak","email":"tmcpeak@us.ibm.com","username":"travis-mcpeak"},"change_message_id":"99a42fa7e5e8b507fed7d56a26880dc435ac250a","unresolved":false,"context_lines":[{"line_number":30,"context_line":"the command is not being separated from the parameters, so the shell doesn\u0027t"},{"line_number":31,"context_line":"know where to separate them."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"### Recommended Actions ###"},{"line_number":34,"context_line":"Code with the potential for shell injection vulnerabilities has been identified"},{"line_number":35,"context_line":"in the above mentioned services and versions, but vulnerabilities are possible"},{"line_number":36,"context_line":"in other services as well.  It is recommended to ensure permissions to all"}],"source_content_type":"application/octet-stream","patch_set":2,"id":"fa98f980_1780f3be","line":33,"in_reply_to":"fa98f980_37b097dc","updated":"2014-09-04 16:39:40.000000000","message":"Done","commit_id":"196544b462f4f7a03a4abee991b6439a8e4141b3"},{"author":{"_account_id":11029,"name":"Jamie Finnigan","email":"jamiefinnigan@gmail.com","username":"jamiefinnigan"},"change_message_id":"587212846b03958e7c7f80a757c44d19494e1e87","unresolved":false,"context_lines":[{"line_number":34,"context_line":"Code with the potential for shell injection vulnerabilities has been identified"},{"line_number":35,"context_line":"in the above mentioned services and versions, but vulnerabilities are possible"},{"line_number":36,"context_line":"in other services as well.  It is recommended to ensure permissions to all"},{"line_number":37,"context_line":"service configuration files are set so that only the owner user can read/write"},{"line_number":38,"context_line":"to them.  In any cases where other processes or users may have write access to"},{"line_number":39,"context_line":"configuration files, ensure that all settings are sanitized and validated."},{"line_number":40,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":2,"id":"fa98f980_b7dac714","line":37,"updated":"2014-09-04 16:34:22.000000000","message":"Possible alternative wording - \"Ensure permissions for configuration files across all OpenStack services are set..\"?","commit_id":"196544b462f4f7a03a4abee991b6439a8e4141b3"},{"author":{"_account_id":11861,"name":"Travis McPeak","email":"tmcpeak@us.ibm.com","username":"travis-mcpeak"},"change_message_id":"99a42fa7e5e8b507fed7d56a26880dc435ac250a","unresolved":false,"context_lines":[{"line_number":34,"context_line":"Code with the potential for shell injection vulnerabilities has been identified"},{"line_number":35,"context_line":"in the above mentioned services and versions, but vulnerabilities are possible"},{"line_number":36,"context_line":"in other services as well.  It is recommended to ensure permissions to all"},{"line_number":37,"context_line":"service configuration files are set so that only the owner user can read/write"},{"line_number":38,"context_line":"to them.  In any cases where other processes or users may have write access to"},{"line_number":39,"context_line":"configuration files, ensure that all settings are sanitized and validated."},{"line_number":40,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":2,"id":"fa98f980_d7482bb5","line":37,"in_reply_to":"fa98f980_b7dac714","updated":"2014-09-04 16:39:40.000000000","message":"Done","commit_id":"196544b462f4f7a03a4abee991b6439a8e4141b3"},{"author":{"_account_id":11029,"name":"Jamie Finnigan","email":"jamiefinnigan@gmail.com","username":"jamiefinnigan"},"change_message_id":"587212846b03958e7c7f80a757c44d19494e1e87","unresolved":false,"context_lines":[{"line_number":35,"context_line":"in the above mentioned services and versions, but vulnerabilities are possible"},{"line_number":36,"context_line":"in other services as well.  It is recommended to ensure permissions to all"},{"line_number":37,"context_line":"service configuration files are set so that only the owner user can read/write"},{"line_number":38,"context_line":"to them.  In any cases where other processes or users may have write access to"},{"line_number":39,"context_line":"configuration files, ensure that all settings are sanitized and validated."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"### Contacts / References ###"}],"source_content_type":"application/octet-stream","patch_set":2,"id":"fa98f980_77cdbf65","line":38,"updated":"2014-09-04 16:34:22.000000000","message":"Drop the \u0027any\u0027?  \"In cases where..\"","commit_id":"196544b462f4f7a03a4abee991b6439a8e4141b3"},{"author":{"_account_id":11861,"name":"Travis McPeak","email":"tmcpeak@us.ibm.com","username":"travis-mcpeak"},"change_message_id":"99a42fa7e5e8b507fed7d56a26880dc435ac250a","unresolved":false,"context_lines":[{"line_number":35,"context_line":"in the above mentioned services and versions, but vulnerabilities are possible"},{"line_number":36,"context_line":"in other services as well.  It is recommended to ensure permissions to all"},{"line_number":37,"context_line":"service configuration files are set so that only the owner user can read/write"},{"line_number":38,"context_line":"to them.  In any cases where other processes or users may have write access to"},{"line_number":39,"context_line":"configuration files, ensure that all settings are sanitized and validated."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"### Contacts / References ###"}],"source_content_type":"application/octet-stream","patch_set":2,"id":"fa98f980_f7ca8f19","line":38,"in_reply_to":"fa98f980_77cdbf65","updated":"2014-09-04 16:39:40.000000000","message":"Done","commit_id":"196544b462f4f7a03a4abee991b6439a8e4141b3"},{"author":{"_account_id":2807,"name":"Bryan D. Payne","email":"bdpayne@acm.org","username":"bdpayne"},"change_message_id":"dca1e9182c0d2d6b15883435c37299c9e5ffa07a","unresolved":false,"context_lines":[{"line_number":10,"context_line":"OpenStack service."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"### Affected Services / Software ###"},{"line_number":13,"context_line":"Nova, Trove / Icehouse"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"### Discussion ###"},{"line_number":16,"context_line":"Some OpenStack services rely on operating system commands to perform certain"}],"source_content_type":"application/octet-stream","patch_set":3,"id":"fa98f980_b570ff72","line":13,"updated":"2014-09-04 17:51:48.000000000","message":"Do we know that these are the only affected versions?  Also, is this Icehouse for both Nova and Trove or is this Nova (all versions) and Trove (Icehouse)?","commit_id":"537e0b308f4c2c918358369e0a11078cdaa741f6"},{"author":{"_account_id":2807,"name":"Bryan D. Payne","email":"bdpayne@acm.org","username":"bdpayne"},"change_message_id":"dca1e9182c0d2d6b15883435c37299c9e5ffa07a","unresolved":false,"context_lines":[{"line_number":27,"context_line":"code behaves as expected.  If, on the other hand, an attacker is able to set"},{"line_number":28,"context_line":"config.DIRECTORY to something malicious such as \u0027/opt ; rm -rf /etc\u0027, the"},{"line_number":29,"context_line":"shell will execute both \u0027ls -al /opt\u0027 and \u0027rm -rf /etc\u0027.  The problem is that"},{"line_number":30,"context_line":"the command is not being separated from the parameters, so the shell doesn\u0027t"},{"line_number":31,"context_line":"know where to separate them.  Code with the potential for shell injection"},{"line_number":32,"context_line":"vulnerabilities has been identified in the above mentioned services and"},{"line_number":33,"context_line":"versions, but vulnerabilities are possible in other services as well."}],"source_content_type":"application/octet-stream","patch_set":3,"id":"fa98f980_d5190323","line":30,"updated":"2014-09-04 17:51:48.000000000","message":"I understand what you are saying with \"the command is not being separated from the parameters\", but I think that it is worded in a way that makes it confusing.  Perhaps just explain that with shell\u003dTrue this will just blindly exec whatever string is passed.","commit_id":"537e0b308f4c2c918358369e0a11078cdaa741f6"},{"author":{"_account_id":2807,"name":"Bryan D. Payne","email":"bdpayne@acm.org","username":"bdpayne"},"change_message_id":"dca1e9182c0d2d6b15883435c37299c9e5ffa07a","unresolved":false,"context_lines":[{"line_number":30,"context_line":"the command is not being separated from the parameters, so the shell doesn\u0027t"},{"line_number":31,"context_line":"know where to separate them.  Code with the potential for shell injection"},{"line_number":32,"context_line":"vulnerabilities has been identified in the above mentioned services and"},{"line_number":33,"context_line":"versions, but vulnerabilities are possible in other services as well."},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"### Recommended Actions ###"},{"line_number":36,"context_line":"Ensure permissions for configuration files across all OpenStack services are"}],"source_content_type":"application/octet-stream","patch_set":3,"id":"fa98f980_d59e6362","line":33,"updated":"2014-09-04 17:51:48.000000000","message":"Given this, I would at least say something like \"possibly others\" up in the affected services.\n\nAlso, could we provide more details about what specific commands are an issue in the places that we know about it?  Make it clear that the problem isn\u0027t limited to those areas, but perhaps it would be good to know which specific ones sparked the concern?","commit_id":"537e0b308f4c2c918358369e0a11078cdaa741f6"},{"author":{"_account_id":2807,"name":"Bryan D. Payne","email":"bdpayne@acm.org","username":"bdpayne"},"change_message_id":"dca1e9182c0d2d6b15883435c37299c9e5ffa07a","unresolved":false,"context_lines":[{"line_number":36,"context_line":"Ensure permissions for configuration files across all OpenStack services are"},{"line_number":37,"context_line":"set so that only the owner user can read/write to them.  In cases where other"},{"line_number":38,"context_line":"processes or users may have write access to configuration files, ensure that"},{"line_number":39,"context_line":"all settings are sanitized and validated."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"### Contacts / References ###"},{"line_number":42,"context_line":"This OSSN : https://wiki.openstack.org/wiki/OSSN/OSSN-0026"}],"source_content_type":"application/octet-stream","patch_set":3,"id":"fa98f980_55b0b3dc","line":39,"updated":"2014-09-04 17:51:48.000000000","message":"Is it worth mentioning that read access has it\u0027s own issues (plaintext passwords in the config files).  And that it is good practice to be careful about who can read the files too?  I say this because people often like to use 644 perms in /etc and that could be enough to address this OSSN, but it still isn\u0027t a good idea in most cases.","commit_id":"537e0b308f4c2c918358369e0a11078cdaa741f6"},{"author":{"_account_id":2807,"name":"Bryan D. Payne","email":"bdpayne@acm.org","username":"bdpayne"},"change_message_id":"0e66de54c50d0a838031416d15c1bc10daec99f8","unresolved":false,"context_lines":[{"line_number":7,"context_line":"with the privileges of the OpenStack service.  Since configuration files are"},{"line_number":8,"context_line":"trusted, the input is not checked or sanitized.  If a malicious user is able to"},{"line_number":9,"context_line":"write to these files, they may be able to execute arbitrary code as the"},{"line_number":10,"context_line":"OpenStack service."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"### Affected Services / Software ###"},{"line_number":13,"context_line":"Nova / All versions, Trove / Juno, possibly others"}],"source_content_type":"application/octet-stream","patch_set":4,"id":"fa98f980_02e0a4f8","line":10,"updated":"2014-09-04 23:50:53.000000000","message":"perhaps \"with the priv level of the OpenStack service\"?","commit_id":"c16403af0e0476b028e47f636eb6077185e201de"}]}
