68 lines
2.0 KiB
Plaintext
Raw Permalink Normal View History

include::../../../shared_content/secrets/description.adoc[]
== Why is this an issue?
include::../../../shared_content/secrets/rationale.adoc[]
=== What is the potential impact?
Application keys and secrets allow applications to authenticate with Huawei
Cloud services. If an application secret is disclosed, an attacker will be able
to call Huawei Cloud resources with the same privileges as the application.
Below are some real-world scenarios that illustrate some impacts of an attacker
exploiting the secret.
:secret_type: application secret
include::../../../shared_content/secrets/impact/phishing.adoc[]
==== Financial loss
Cloud providers charge for their services based on their usage. This may be
based on the number of API calls made, bandwidth, or how many server instances
are running.
An attacker can use a disclosed secret to send large numbers of requests to the
cloud provider. This can lead to a large and unexpected increase in cloud
provider costs.
==== Denial of service
The cloud provider may monitor requests to identify unusual usage activity. If
an attacker is able to send enough requests, the cloud provider may flag your
account and take action against it. This could lead to the suspension or
termination of your account, thus causing significant inconvenience and
disruption for your customers or partners.
== How to fix it
include::../../../shared_content/secrets/fix/revoke.adoc[]
include::../../../shared_content/secrets/fix/vault.adoc[]
=== Code examples
:example_secret: 2bcd82072fdd4d396eadd7095a27c0f2f93d527618605a631107fb75026b59cb
:example_name: huawei-cloud.app-secret
:example_env: HUAWEI_CLOUD_APP_SECRET
include::../../../shared_content/secrets/examples.adoc[]
//=== How does this work?
//=== Pitfalls
//=== Going the extra mile
== Resources
=== Documentation
* Huawei Developer Documentation - https://developer.huawei.com/consumer/en/doc/HMSCore-Guides/oauth2-0000001212610981[OAuth 2.0-based Authentication]
include::../../../shared_content/secrets/resources/standards.adoc[]
//=== Benchmarks