rspec/rules/S5332/xml/rule.adoc

54 lines
958 B
Plaintext
Raw Normal View History

2021-10-13 12:21:04 +02:00
include::../description.adoc[]
include::../ask-yourself.adoc[]
include::../recommended.adoc[]
== Sensitive Code Example
[source,xml]
2021-10-13 12:21:04 +02:00
----
<application
android:usesCleartextTraffic="true"> <!-- Sensitive -->
</application>
----
For versions older than Android 9 (API level 28) ``++android:usesCleartextTraffic++``
is implicitely set to ``++true++``.
[source,xml]
2021-10-13 12:21:04 +02:00
----
<application> <!-- Sensitive -->
</application>
----
== Compliant Solution
2022-02-04 17:28:24 +01:00
[source,xml]
2021-10-13 12:21:04 +02:00
----
<application
android:usesCleartextTraffic="false">
</application>
----
include::../see.adoc[]
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Make sure allowing clear-text traffic is safe here.
usesCleartextTraffic is implicitly enabled for older Android versions. Make sure allowing clear-text traffic is safe here.
=== Highlighting
Highlight the opening <application> tag
2021-10-13 12:21:04 +02:00
endif::env-github,rspecator-view[]