Insecure service configuration - CloudDB
Description
Sensitive information stored in the source code. It is determined that non-JSON Apache Lucene queries are enabled on the Cloudant database server.
Impact
Obtain information from the logs in the database, which in turn contain sensitive user data.
Recommendation
- Securely configure the vulnerable service so that it can only be accessed by authorized users.
- Disable queries via Query Parser.
Threat
Authorized attacker using the credentials stored in the source code from the Internet.
Expected Remediation Time
⌚ 60 minutes.
Score
Default score using CVSS 3.1. It may change depending on the context of the vulnerability.
Base
- Attack vector: N
- Attack complexity: H
- Privileges required: H
- User interaction: N
- Scope: U
- Confidentiality: H
- Integrity: L
- Availability: N
Temporal
- Exploit code madurity: X
- Remediation level: O
- Report confidence: X
Result
- Vector string: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:N/E:X/RL:O/RC:X
- Score:
- Base: 5.0
- Temporal: 4.8
- Severity:
- Base: Medium
- Temporal: Medium
Code Examples
Compliant code
The search cloud service is restricted based on certain parameters
"indexes": {
"search-cloud": {
"analyzer": "standard",
"index": "function(doc) { index(\"keyword\", doc.name); }"
}
}
Non compliant code
The search cloud service is not securely restricted
"indexes": {
"search-cloud": {
"analyzer": "all",
"index": "function: any"
}
}
Requirements
Search for vulnerabilities in your apps for free with our automated security testing! Start your 21-day free trial and discover the benefits of our Continuous Hacking Machine Plan. If you prefer a full service that includes the expertise of our ethical hackers, don't hesitate to contact us for our Continuous Hacking Squad Plan.