Skip to content

Instantly share code, notes, and snippets.

@owen-mc
Created July 6, 2024 22:45
Show Gist options
  • Save owen-mc/99b0dfa1144d25c7bafa5041d9892946 to your computer and use it in GitHub Desktop.
Save owen-mc/99b0dfa1144d25c7bafa5041d9892946 to your computer and use it in GitHub Desktop.
Android missing certificate pinning (java) 84 results (19 repositories)

Results for "Android missing certificate pinning"

Query
/**
 * @name Android missing certificate pinning
 * @description Network connections that do not use certificate pinning may allow attackers to eavesdrop on communications.
 * @kind problem
 * @problem.severity warning
 * @security-severity 5.9
 * @precision medium
 * @id java/android/missing-certificate-pinning
 * @tags security
 *       external/cwe/cwe-295
 */

import java
import semmle.code.java.security.AndroidCertificatePinningQuery

from DataFlow::Node node, string domain, string msg
where
  missingPinning(node, domain) and
  if domain = ""
  then msg = "(no explicitly trusted domains)"
  else msg = "(" + domain + " is not trusted by a pin)"
select node, "This network call does not implement certificate pinning. " + msg

Summary

Repository Results
googleapis/google-http-java-client 19 result(s)
square/okhttp 19 result(s)
wso2/product-apim 10 result(s)
deepjavalibrary/djl 8 result(s)
eclipse-californium/californium 4 result(s)
yuliskov/SmartTube 4 result(s)
awsdocs/aws-doc-sdk-examples 3 result(s)
libgdx/libgdx 3 result(s)
OpenAPITools/openapi-generator 2 result(s)
osmdroid/osmdroid 2 result(s)
realm/realm-java 2 result(s)
CarGuo/GSYVideoPlayer 1 result(s)
getsentry/sentry-java 1 result(s)
grpc/grpc-java 1 result(s)
kubernetes-client/java 1 result(s)
mamoe/mirai 1 result(s)
sannies/mp4parser 1 result(s)
square/okio 1 result(s)
zxing/zxing 1 result(s)

googleapis/google-http-java-client

google-http-client/src/main/java/com/google/api/client/http/apache/ApacheHttpTransport.java

    HttpRequestBase requestBase;
    if (method.equals(HttpMethods.DELETE)) {
      requestBase = new HttpDelete(url);
    } else if (method.equals(HttpMethods.GET)) {
      requestBase = new HttpGet(url);

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client/src/main/java/com/google/api/client/http/apache/ApacheHttpTransport.java

      requestBase = new HttpDelete(url);
    } else if (method.equals(HttpMethods.GET)) {
      requestBase = new HttpGet(url);
    } else if (method.equals(HttpMethods.HEAD)) {
      requestBase = new HttpHead(url);

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client/src/main/java/com/google/api/client/http/apache/ApacheHttpTransport.java

      requestBase = new HttpGet(url);
    } else if (method.equals(HttpMethods.HEAD)) {
      requestBase = new HttpHead(url);
    } else if (method.equals(HttpMethods.POST)) {
      requestBase = new HttpPost(url);

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client/src/main/java/com/google/api/client/http/apache/ApacheHttpTransport.java

      requestBase = new HttpHead(url);
    } else if (method.equals(HttpMethods.POST)) {
      requestBase = new HttpPost(url);
    } else if (method.equals(HttpMethods.PUT)) {
      requestBase = new HttpPut(url);

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client/src/main/java/com/google/api/client/http/apache/ApacheHttpTransport.java

      requestBase = new HttpPost(url);
    } else if (method.equals(HttpMethods.PUT)) {
      requestBase = new HttpPut(url);
    } else if (method.equals(HttpMethods.TRACE)) {
      requestBase = new HttpTrace(url);

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client/src/main/java/com/google/api/client/http/apache/ApacheHttpTransport.java

      requestBase = new HttpPut(url);
    } else if (method.equals(HttpMethods.TRACE)) {
      requestBase = new HttpTrace(url);
    } else if (method.equals(HttpMethods.OPTIONS)) {
      requestBase = new HttpOptions(url);

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client/src/main/java/com/google/api/client/http/apache/ApacheHttpTransport.java

      requestBase = new HttpTrace(url);
    } else if (method.equals(HttpMethods.OPTIONS)) {
      requestBase = new HttpOptions(url);
    } else {
      requestBase = new HttpExtensionMethod(method, url);

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client/src/main/java/com/google/api/client/http/apache/HttpExtensionMethod.java

  public HttpExtensionMethod(String methodName, String uri) {
    this.methodName = Preconditions.checkNotNull(methodName);
    setURI(URI.create(uri));
  }

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client/src/main/java/com/google/api/client/http/javanet/DefaultConnectionFactory.java

  @Override
  public HttpURLConnection openConnection(URL url) throws IOException {
    return (HttpURLConnection) (proxy == null ? url.openConnection() : url.openConnection(proxy));
  }
}

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client/src/main/java/com/google/api/client/http/javanet/DefaultConnectionFactory.java

  @Override
  public HttpURLConnection openConnection(URL url) throws IOException {
    return (HttpURLConnection) (proxy == null ? url.openConnection() : url.openConnection(proxy));
  }
}

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client-apache-v2/src/main/java/com/google/api/client/http/apache/v2/ApacheHttpTransport.java

    HttpRequestBase requestBase;
    if (method.equals(HttpMethods.DELETE)) {
      requestBase = new HttpDelete(url);
    } else if (method.equals(HttpMethods.GET)) {
      requestBase = new HttpGet(url);

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client-apache-v2/src/main/java/com/google/api/client/http/apache/v2/ApacheHttpTransport.java

      requestBase = new HttpDelete(url);
    } else if (method.equals(HttpMethods.GET)) {
      requestBase = new HttpGet(url);
    } else if (method.equals(HttpMethods.HEAD)) {
      requestBase = new HttpHead(url);

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client-apache-v2/src/main/java/com/google/api/client/http/apache/v2/ApacheHttpTransport.java

      requestBase = new HttpGet(url);
    } else if (method.equals(HttpMethods.HEAD)) {
      requestBase = new HttpHead(url);
    } else if (method.equals(HttpMethods.PATCH)) {
      requestBase = new HttpPatch(url);

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client-apache-v2/src/main/java/com/google/api/client/http/apache/v2/ApacheHttpTransport.java

      requestBase = new HttpHead(url);
    } else if (method.equals(HttpMethods.PATCH)) {
      requestBase = new HttpPatch(url);
    } else if (method.equals(HttpMethods.POST)) {
      requestBase = new HttpPost(url);

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client-apache-v2/src/main/java/com/google/api/client/http/apache/v2/ApacheHttpTransport.java

      requestBase = new HttpPatch(url);
    } else if (method.equals(HttpMethods.POST)) {
      requestBase = new HttpPost(url);
    } else if (method.equals(HttpMethods.PUT)) {
      requestBase = new HttpPut(url);

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client-apache-v2/src/main/java/com/google/api/client/http/apache/v2/ApacheHttpTransport.java

      requestBase = new HttpPost(url);
    } else if (method.equals(HttpMethods.PUT)) {
      requestBase = new HttpPut(url);
    } else if (method.equals(HttpMethods.TRACE)) {
      requestBase = new HttpTrace(url);

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client-apache-v2/src/main/java/com/google/api/client/http/apache/v2/ApacheHttpTransport.java

      requestBase = new HttpPut(url);
    } else if (method.equals(HttpMethods.TRACE)) {
      requestBase = new HttpTrace(url);
    } else if (method.equals(HttpMethods.OPTIONS)) {
      requestBase = new HttpOptions(url);

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client-apache-v2/src/main/java/com/google/api/client/http/apache/v2/ApacheHttpTransport.java

      requestBase = new HttpTrace(url);
    } else if (method.equals(HttpMethods.OPTIONS)) {
      requestBase = new HttpOptions(url);
    } else {
      requestBase = new HttpExtensionMethod(method, url);

This network call does not implement certificate pinning. (no explicitly trusted domains)


google-http-client-apache-v2/src/main/java/com/google/api/client/http/apache/v2/HttpExtensionMethod.java

  public HttpExtensionMethod(String methodName, String uri) {
    this.methodName = Preconditions.checkNotNull(methodName);
    setURI(URI.create(uri));
  }

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
create(...) This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
create(...) This network call does not implement certificate pinning. (no explicitly trusted domains)

square/okhttp

samples/guide/src/main/java/okhttp3/guide/GetExample.java

  String run(String url) throws IOException {
    Request request = new Request.Builder()
        .url(url)
        .build();

This network call does not implement certificate pinning. (raw.github.com is not trusted by a pin)


samples/guide/src/main/java/okhttp3/guide/PostExample.java

    RequestBody body = RequestBody.create(json, JSON);
    Request request = new Request.Builder()
        .url(url)
        .post(body)
        .build();

This network call does not implement certificate pinning. (www.roundsapp.com is not trusted by a pin)


samples/guide/src/main/java/okhttp3/recipes/AccessHeaders.java

  public void run() throws Exception {
    Request request = new Request.Builder()
        .url("https://api.github.com/repos/square/okhttp/issues")
        .header("User-Agent", "OkHttp Headers.java")
        .addHeader("Accept", "application/json; q=0.5")

This network call does not implement certificate pinning. (api.github.com is not trusted by a pin)


samples/guide/src/main/java/okhttp3/recipes/CancelCall.java

  public void run() throws Exception {
    Request request = new Request.Builder()
        .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay.
        .build();

This network call does not implement certificate pinning. (httpbin.org is not trusted by a pin)


samples/guide/src/main/java/okhttp3/recipes/ConfigureTimeouts.java

  public void run() throws Exception {
    Request request = new Request.Builder()
        .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay.
        .build();

This network call does not implement certificate pinning. (httpbin.org is not trusted by a pin)


samples/guide/src/main/java/okhttp3/recipes/ParseResponseWithMoshi.java

  public void run() throws Exception {
    Request request = new Request.Builder()
        .url("https://api.github.com/gists/c2a7c39532239ff261be")
        .build();
    try (Response response = client.newCall(request).execute()) {

This network call does not implement certificate pinning. (api.github.com is not trusted by a pin)


samples/guide/src/main/java/okhttp3/recipes/PerCallSettings.java

  public void run() throws Exception {
    Request request = new Request.Builder()
        .url("http://httpbin.org/delay/1") // This URL is served with a 1 second delay.
        .build();

This network call does not implement certificate pinning. (httpbin.org is not trusted by a pin)


samples/guide/src/main/java/okhttp3/recipes/PostFile.java


    Request request = new Request.Builder()
        .url("https://api.github.com/markdown/raw")
        .post(RequestBody.create(file, MEDIA_TYPE_MARKDOWN))
        .build();

This network call does not implement certificate pinning. (api.github.com is not trusted by a pin)


samples/guide/src/main/java/okhttp3/recipes/PostForm.java

        .build();
    Request request = new Request.Builder()
        .url("https://en.wikipedia.org/w/index.php")
        .post(formBody)
        .build();

This network call does not implement certificate pinning. (en.wikipedia.org is not trusted by a pin)


samples/guide/src/main/java/okhttp3/recipes/PostMultipart.java

    Request request = new Request.Builder()
        .header("Authorization", "Client-ID " + IMGUR_CLIENT_ID)
        .url("https://api.imgur.com/3/image")
        .post(requestBody)
        .build();

This network call does not implement certificate pinning. (api.imgur.com is not trusted by a pin)


samples/guide/src/main/java/okhttp3/recipes/PostStreaming.java


    Request request = new Request.Builder()
        .url("https://api.github.com/markdown/raw")
        .post(requestBody)
        .build();

This network call does not implement certificate pinning. (api.github.com is not trusted by a pin)


samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java


    Request request = new Request.Builder()
        .url("https://api.github.com/markdown/raw")
        .post(pipeBody)
        .build();

This network call does not implement certificate pinning. (api.github.com is not trusted by a pin)


samples/guide/src/main/java/okhttp3/recipes/PostString.java


    Request request = new Request.Builder()
        .url("https://api.github.com/markdown/raw")
        .post(RequestBody.create(postBody, MEDIA_TYPE_MARKDOWN))
        .build();

This network call does not implement certificate pinning. (api.github.com is not trusted by a pin)


samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java

  public void run() throws Exception {
    Request washingtonPostRequest = new Request.Builder()
        .url("https://www.washingtonpost.com/")
        .build();
    client.newCall(washingtonPostRequest).enqueue(new Callback() {

This network call does not implement certificate pinning. (www.washingtonpost.com is not trusted by a pin)


samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java


    Request newYorkTimesRequest = new Request.Builder()
        .url("https://www.nytimes.com/")
        .build();
    client.newCall(newYorkTimesRequest).enqueue(new Callback() {

This network call does not implement certificate pinning. (www.nytimes.com is not trusted by a pin)


samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java

        mapJsonAdapter.toJson(requestBody), MEDIA_TYPE_JSON);
    Request request = new Request.Builder()
        .url("https://www.googleapis.com/urlshortener/v1/url?key=" + GOOGLE_API_KEY)
        .post(jsonRequestBody)
        .build();

This network call does not implement certificate pinning. (www.googleapis.com is not trusted by a pin)


samples/guide/src/main/java/okhttp3/recipes/RewriteResponseCacheControl.java


      Request request = new Request.Builder()
          .url("https://api.github.com/search/repositories?q=http")
          .build();

This network call does not implement certificate pinning. (api.github.com is not trusted by a pin)


samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java


    Request request = new Request.Builder()
        .url("ws://echo.websocket.org")
        .build();
    client.newWebSocket(request, this);

This network call does not implement certificate pinning. (ws: is not trusted by a pin)


samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java

    // Create request for remote resource.
    Request request = new Request.Builder()
        .url(ENDPOINT)
        .build();

This network call does not implement certificate pinning. (api.github.com is not trusted by a pin)


node
url This network call does not implement certificate pinning. (raw.github.com is not trusted by a pin)
url This network call does not implement certificate pinning. (www.roundsapp.com is not trusted by a pin)
"https://api.github.com/repos/square/okhttp/issues" This network call does not implement certificate pinning. (api.github.com is not trusted by a pin)
"http://httpbin.org/delay/2" This network call does not implement certificate pinning. (httpbin.org is not trusted by a pin)
"http://httpbin.org/delay/2" This network call does not implement certificate pinning. (httpbin.org is not trusted by a pin)
"https://api.github.com/gists/c2a7c39532239ff261be" This network call does not implement certificate pinning. (api.github.com is not trusted by a pin)
"http://httpbin.org/delay/1" This network call does not implement certificate pinning. (httpbin.org is not trusted by a pin)
"https://api.github.com/markdown/raw" This network call does not implement certificate pinning. (api.github.com is not trusted by a pin)
"https://en.wikipedia.org/w/index.php" This network call does not implement certificate pinning. (en.wikipedia.org is not trusted by a pin)
"https://api.imgur.com/3/image" This network call does not implement certificate pinning. (api.imgur.com is not trusted by a pin)
"https://api.github.com/markdown/raw" This network call does not implement certificate pinning. (api.github.com is not trusted by a pin)
"https://api.github.com/markdown/raw" This network call does not implement certificate pinning. (api.github.com is not trusted by a pin)
"https://api.github.com/markdown/raw" This network call does not implement certificate pinning. (api.github.com is not trusted by a pin)
"https://www.washingtonpost.com/" This network call does not implement certificate pinning. (www.washingtonpost.com is not trusted by a pin)
"https://www.nytimes.com/" This network call does not implement certificate pinning. (www.nytimes.com is not trusted by a pin)
... + ... This network call does not implement certificate pinning. (www.googleapis.com is not trusted by a pin)
"https://api.github.com/search/repositories?q=http" This network call does not implement certificate pinning. (api.github.com is not trusted by a pin)
"ws://echo.websocket.org" This network call does not implement certificate pinning. (ws: is not trusted by a pin)
ENDPOINT This network call does not implement certificate pinning. (api.github.com is not trusted by a pin)

wso2/product-apim

modules/integration/tests-common/clients/store/src/gen/java/org/wso2/am/integration/clients/store/api/ApiClient.java


        final String url = buildUrl(path, queryParams, collectionQueryParams);
        final Request.Builder reqBuilder = new Request.Builder().url(url);
        processHeaderParams(headerParams, reqBuilder);
        processCookieParams(cookieParams, reqBuilder);

This network call does not implement certificate pinning. (no explicitly trusted domains)


modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/UserManagementUtils.java

                                  String organization)  throws IOException, APIManagerIntegrationTestException {
        CloseableHttpClient client = HTTPSClientUtils.getHttpsClient();
        HttpPost postRequest = new HttpPost("https://localhost:9943/api/identity/user/v1.0/me");
        postRequest.addHeader(APIMIntegrationConstants.AUTHORIZATION_HEADER,
                "Basic " + encodeCredentials("admin", "admin".toCharArray()));

This network call does not implement certificate pinning. (no explicitly trusted domains)


modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/UserManagementUtils.java

                                  String organization, String email)  throws IOException, APIManagerIntegrationTestException {
        CloseableHttpClient client = HTTPSClientUtils.getHttpsClient();
        HttpPost postRequest = new HttpPost("https://localhost:9943/api/identity/user/v1.0/me");
        postRequest.addHeader(APIMIntegrationConstants.AUTHORIZATION_HEADER,
                "Basic " + encodeCredentials("admin", "admin".toCharArray()));

This network call does not implement certificate pinning. (no explicitly trusted domains)


sample-scenarios/clients/admin/src/main/java/org/wso2/carbon/apimgt/samples/utils/admin/rest/client/ApiClient.java

            String dcrEndpoint = "http://127.0.0.1:9763/client-registration/v0.17/register";
            url = new URL(dcrEndpoint);
            urlConn = (HttpURLConnection) url.openConnection();
            urlConn.setDoOutput(true);
            urlConn.setRequestMethod("POST");

This network call does not implement certificate pinning. (no explicitly trusted domains)


sample-scenarios/clients/admin/src/main/java/org/wso2/carbon/apimgt/samples/utils/admin/rest/client/ApiClient.java

            String dcrEndpoint = "http://127.0.0.1:9763/client-registration/v0.17/register";
            url = new URL(dcrEndpoint);
            urlConn = (HttpURLConnection) url.openConnection();
            urlConn.setDoOutput(true);
            urlConn.setRequestMethod("POST");

This network call does not implement certificate pinning. (no explicitly trusted domains)


sample-scenarios/clients/publisher/src/main/java/org/wso2/carbon/apimgt/samples/utils/publisher/rest/client/ApiClient.java

            String dcrEndpoint = "http://127.0.0.1:9763/client-registration/v0.17/register";
            url = new URL(dcrEndpoint);
            urlConn = (HttpURLConnection) url.openConnection();
            urlConn.setDoOutput(true);
            urlConn.setRequestMethod("POST");

This network call does not implement certificate pinning. (no explicitly trusted domains)


sample-scenarios/clients/publisher/src/main/java/org/wso2/carbon/apimgt/samples/utils/publisher/rest/client/ApiClient.java

            String dcrEndpoint = "http://127.0.0.1:9763/client-registration/v0.17/register";
            url = new URL(dcrEndpoint);
            urlConn = (HttpURLConnection) url.openConnection();
            urlConn.setDoOutput(true);
            urlConn.setRequestMethod("POST");

This network call does not implement certificate pinning. (no explicitly trusted domains)


sample-scenarios/clients/store/src/main/java/org/wso2/carbon/apimgt/samples/utils/store/rest/client/ApiClient.java

            String dcrEndpoint = "http://127.0.0.1:9763/client-registration/v0.17/register";
            url = new URL(dcrEndpoint);
            urlConn = (HttpURLConnection) url.openConnection();
            urlConn.setDoOutput(true);
            urlConn.setRequestMethod("POST");

This network call does not implement certificate pinning. (no explicitly trusted domains)


sample-scenarios/clients/store/src/main/java/org/wso2/carbon/apimgt/samples/utils/store/rest/client/ApiClient.java

            String dcrEndpoint = "http://127.0.0.1:9763/client-registration/v0.17/register";
            url = new URL(dcrEndpoint);
            urlConn = (HttpURLConnection) url.openConnection();
            urlConn.setDoOutput(true);
            urlConn.setRequestMethod("POST");

This network call does not implement certificate pinning. (no explicitly trusted domains)


sample-scenarios/sample-utils/src/main/java/org/wso2/carbon/apimgt/samples/utils/HTTPSClientUtils.java

    private static org.apache.http.HttpResponse sendGetRequest(CloseableHttpClient httpClient, String url, Map<String, String> headers)
            throws IOException {
        HttpGet request = new HttpGet(url);
        if (headers != null) {
            for (Map.Entry<String, String> head : headers.entrySet()) {

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
url This network call does not implement certificate pinning. (no explicitly trusted domains)
"https://localhost:9943/api/identity/user/v1.0/me" This network call does not implement certificate pinning. (no explicitly trusted domains)
"https://localhost:9943/api/identity/user/v1.0/me" This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)

deepjavalibrary/djl

api/src/main/java/ai/djl/modality/audio/AudioFactory.java

     */
    public Audio fromUrl(URL url) throws IOException {
        try (InputStream is = url.openStream()) {
            return fromInputStream(is);
        }

This network call does not implement certificate pinning. (no explicitly trusted domains)


api/src/main/java/ai/djl/modality/cv/ImageFactory.java

     */
    public Image fromUrl(URL url) throws IOException {
        try (InputStream is = url.openStream()) {
            return fromInputStream(is);
        }

This network call does not implement certificate pinning. (no explicitly trusted domains)


api/src/main/java/ai/djl/training/util/DownloadUtils.java

            Files.createDirectories(dir);
        }
        URLConnection conn = url.openConnection();
        if (progress != null) {
            long contentLength = conn.getContentLengthLong();

This network call does not implement certificate pinning. (no explicitly trusted domains)


api/src/main/java/ai/djl/util/Ec2Utils.java

    private static HttpURLConnection openConnection(
            URL url, String method, String header, String value) throws IOException {
        HttpURLConnection conn = (HttpURLConnection) url.openConnection(Proxy.NO_PROXY);
        conn.setConnectTimeout(1000);
        conn.setReadTimeout(1000);

This network call does not implement certificate pinning. (no explicitly trusted domains)


api/src/main/java/ai/djl/util/Utils.java

                throw new IOException("Offline model is enabled.");
            }
            HttpURLConnection conn = (HttpURLConnection) url.openConnection();
            for (Map.Entry<String, String> entry : headers.entrySet()) {
                conn.addRequestProperty(entry.getKey(), entry.getValue());

This network call does not implement certificate pinning. (no explicitly trusted domains)


api/src/main/java/ai/djl/util/Utils.java

            return conn.getInputStream();
        }
        return new BufferedInputStream(url.openStream());
    }

This network call does not implement certificate pinning. (no explicitly trusted domains)


examples/src/main/java/ai/djl/examples/inference/cv/ObjectDetectionWithTensorflowSavedModel.java

        Map<Integer, String> map = new ConcurrentHashMap<>();
        int maxId = 0;
        try (InputStream is = new BufferedInputStream(synsetUrl.openStream());
                Scanner scanner = new Scanner(is, StandardCharsets.UTF_8.name())) {
            scanner.useDelimiter("item ");

This network call does not implement certificate pinning. (no explicitly trusted domains)


examples/src/main/java/ai/djl/examples/inference/timeseries/AirPassengersDeepAR.java


    private static TimeSeriesData getTimeSeriesData(NDManager manager, URL url) throws IOException {
        try (Reader reader = new InputStreamReader(url.openStream(), StandardCharsets.UTF_8)) {
            AirPassengers passengers =
                    new GsonBuilder()

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)
synsetUrl This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)

eclipse-californium/californium

cf-utils/cf-cluster/src/main/java/org/eclipse/californium/cluster/JdkHttpClient.java

		try {
			URL get = new URL(url);
			HttpURLConnection con = (HttpURLConnection) get.openConnection();
			if (sslContext != null && con instanceof HttpsURLConnection) {
				HttpsURLConnection httpsCon = (HttpsURLConnection) con;

This network call does not implement certificate pinning. (no explicitly trusted domains)


demo-apps/cf-proxy2/src/main/java/org/eclipse/californium/examples/ExampleProxy2HttpClient.java

		try {
			System.out.println("=== GET " + uri + " ===");
			HttpGet request = new HttpGet(uri);
			HttpResponse response = client.execute(request);
			printResponse(response);

This network call does not implement certificate pinning. (no explicitly trusted domains)


demo-apps/cf-proxy2/src/main/java/org/eclipse/californium/examples/ExampleProxy2HttpClient.java

		try {
			System.out.println("=== PUT " + uri + " ===");
			HttpPut request = new HttpPut(uri);
			if (payload != null) {
				HttpEntity entity = new StringEntity(payload);

This network call does not implement certificate pinning. (no explicitly trusted domains)


demo-apps/cf-proxy2/src/main/java/org/eclipse/californium/examples/ExampleProxy2HttpClient.java

		try {
			System.out.println("=== POST " + uri + " ===");
			HttpPost request = new HttpPost(uri);
			if (payload != null) {
				HttpEntity entity = new StringEntity(payload);

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
get This network call does not implement certificate pinning. (no explicitly trusted domains)
uri This network call does not implement certificate pinning. (no explicitly trusted domains)
uri This network call does not implement certificate pinning. (no explicitly trusted domains)
uri This network call does not implement certificate pinning. (no explicitly trusted domains)

yuliskov/SmartTube

MediaServiceCore/SharedModules/sharedutils/src/main/java/com/liskovsoft/sharedutils/okhttp/OkHttpManager.java

        
        Request okHttpRequest = new Request.Builder()
                .url(url)
                .headers(Headers.of(headers))
                .build();

This network call does not implement certificate pinning. (no explicitly trusted domains)


MediaServiceCore/googleapi/src/main/java/com/liskovsoft/googleapi/common/helpers/RetrofitHelper.java


    private static Retrofit.Builder createBuilder() {
        Retrofit.Builder retrofitBuilder = new Retrofit.Builder().baseUrl(DEFAULT_BASE_URL);

        retrofitBuilder.client(RetrofitOkHttpHelper.getClient());

This network call does not implement certificate pinning. (no explicitly trusted domains)


MediaServiceCore/youtubeapi/src/main/java/com/liskovsoft/youtubeapi/common/helpers/RetrofitHelper.java


    private static Retrofit.Builder createBuilder() {
        Retrofit.Builder retrofitBuilder = new Retrofit.Builder().baseUrl(DEFAULT_BASE_URL);

        retrofitBuilder.client(RetrofitOkHttpHelper.getClient());

This network call does not implement certificate pinning. (no explicitly trusted domains)


MediaServiceCore/youtubeapi/src/main/java/com/liskovsoft/youtubeapi/lounge/LoungeService.java

                mSessionId,
                mGSessionId);
        Request request = new Builder().url(url).build();
        OkHttpClient.Builder builder = new OkHttpClient.Builder();

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
url This network call does not implement certificate pinning. (no explicitly trusted domains)
DEFAULT_BASE_URL This network call does not implement certificate pinning. (no explicitly trusted domains)
DEFAULT_BASE_URL This network call does not implement certificate pinning. (no explicitly trusted domains)
url This network call does not implement certificate pinning. (no explicitly trusted domains)

awsdocs/aws-doc-sdk-examples

java/example_code/iam/src/main/java/aws/example/iam/ConstructUrlFederatedUsers.java


        // Send the request to the AWS federation endpoint to get the sign-in token
        URLConnection conn = url.openConnection();

        BufferedReader bufferReader = new BufferedReader(new InputStreamReader(conn.getInputStream()));

This network call does not implement certificate pinning. (no explicitly trusted domains)


javav2/example_code/redshift/src/main/java/com/example/redshift/ConnectToCluster.java

            props.setProperty("user", userName);
            props.setProperty("password", password);
            conn = DriverManager.getConnection(host, props);

            // A simple query to retrieve data from the work table.

This network call does not implement certificate pinning. (no explicitly trusted domains)


javav2/example_code/s3/src/main/java/com/example/s3/async/SelectObjectContentExample.java

                                url.substring(url.lastIndexOf(".") + 1).trim()), body);
                        try {
                            body.writeInputStream(new URL(url).openStream());
                        } catch (IOException e) {
                            throw new RuntimeException(e);

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
url This network call does not implement certificate pinning. (no explicitly trusted domains)
host This network call does not implement certificate pinning. (no explicitly trusted domains)
new URL(...) This network call does not implement certificate pinning. (no explicitly trusted domains)

libgdx/libgdx

gdx/src/com/badlogic/gdx/net/NetJavaImpl.java

			}

			final HttpURLConnection connection = (HttpURLConnection)url.openConnection();
			connection.setDoOutput(doingOutPut);
			connection.setDoInput(doInput);

This network call does not implement certificate pinning. (no explicitly trusted domains)


tests/gdx-tests/src/com/badlogic/gdx/tests/TextureDownloadTest.java

				try {
					HttpURLConnection conn = null;
					conn = (HttpURLConnection)new URL(url).openConnection();
					conn.setDoInput(true);
					conn.setDoOutput(false);

This network call does not implement certificate pinning. (no explicitly trusted domains)


tests/gdx-tests-lwjgl3/src/com/badlogic/gdx/tests/lwjgl3/AwtTestLWJGL.java

						button.addActionListener( (event) -> {
							try {
								BufferedImage image = ImageIO.read(new URL("http://n4te.com/x/2586-tiNN.jpg").openStream());
								frame.getContentPane().add(new JLabel(new ImageIcon(image)), BorderLayout.CENTER);
								frame.getContentPane().revalidate();

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
url This network call does not implement certificate pinning. (no explicitly trusted domains)
new URL(...) This network call does not implement certificate pinning. (no explicitly trusted domains)
new URL(...) This network call does not implement certificate pinning. (no explicitly trusted domains)

OpenAPITools/openapi-generator

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaHelidonCommonCodegen.java

            try {

                HttpRequest req = HttpRequest.newBuilder(URI.create(HELIDON_VERSIONS_URL))
                        .GET()
                        .timeout(REQUEST_TIMEOUT)

This network call does not implement certificate pinning. (no explicitly trusted domains)


samples/client/petstore/java-micronaut-client/.mvn/wrapper/MavenWrapperDownloader.java

        URL website = new URL(urlString);
        ReadableByteChannel rbc;
        rbc = Channels.newChannel(website.openStream());
        FileOutputStream fos = new FileOutputStream(destination);
        fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
create(...) This network call does not implement certificate pinning. (no explicitly trusted domains)
website This network call does not implement certificate pinning. (no explicitly trusted domains)

osmdroid/osmdroid

osmdroid-android/src/main/java/org/osmdroid/tileprovider/tilesource/bing/BingMapTileSource.java

        BufferedOutputStream out = null;
        try {
            client = (HttpURLConnection) (new URL(String.format(BASE_URL_PATTERN, mStyle, mBingMapKey)).openConnection());
            Log.d(IMapView.LOGTAG, "make request " + client.getURL().toString().toString());
            client.setRequestProperty(Configuration.getInstance().getUserAgentHttpHeader(), Configuration.getInstance().getUserAgentValue());

This network call does not implement certificate pinning. (no explicitly trusted domains)


osmdroid-android/src/main/java/org/osmdroid/tileprovider/util/CloudmadeUtil.java

                    try {
                        final URL urlToRequest = new URL(url);
                        urlConnection = (HttpURLConnection) urlToRequest.openConnection();
                        urlConnection.setDoOutput(true);
                        urlConnection.setRequestMethod("POST");

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
new URL(...) This network call does not implement certificate pinning. (no explicitly trusted domains)
urlToRequest This network call does not implement certificate pinning. (no explicitly trusted domains)

realm/realm-java

realm/realm-library/src/syncIntegrationTest/java/io/realm/objectserver/utils/HttpUtils.java

    public static void startSyncServer() throws Exception {
        Request request = new Request.Builder()
                .url(START_SERVER)
                .build();

This network call does not implement certificate pinning. (no explicitly trusted domains)


realm/realm-library/src/syncIntegrationTest/java/io/realm/objectserver/utils/HttpUtils.java

    public static void stopSyncServer() throws Exception {
        Request request = new Request.Builder()
                .url(STOP_SERVER)
                .build();

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
START_SERVER This network call does not implement certificate pinning. (no explicitly trusted domains)
STOP_SERVER This network call does not implement certificate pinning. (no explicitly trusted domains)

getsentry/sentry-java

sentry/src/main/java/io/sentry/SpotlightIntegration.java


    final @NotNull HttpURLConnection connection =
        (HttpURLConnection) URI.create(url).toURL().openConnection();

    connection.setReadTimeout(1000);

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
toURL(...) This network call does not implement certificate pinning. (no explicitly trusted domains)

grpc/grpc-java

googleapis/src/main/java/io/grpc/googleapis/GoogleCloudToProdNameResolver.java

    @Override
    public HttpURLConnection createConnection(String url) throws IOException {
      HttpURLConnection con = (HttpURLConnection) new URL(url).openConnection();
      con.setRequestMethod("GET");
      con.setReadTimeout(10000);

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
new URL(...) This network call does not implement certificate pinning. (no explicitly trusted domains)

kubernetes-client/java

kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java

        updateParamsForAuth(authNames, allQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url));

        final Request.Builder reqBuilder = new Request.Builder().url(url);
        processHeaderParams(headerParams, reqBuilder);
        processCookieParams(cookieParams, reqBuilder);

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
url This network call does not implement certificate pinning. (no explicitly trusted domains)

mamoe/mirai

buildSrc/src/main/kotlin/UpdateSnapshotPage.kt

        }.toString()
        http.send(
            HttpRequest.newBuilder(URI.create("https://api.github.com/repos/mamoe/mirai/check-runs"))
                .POST(HttpRequest.BodyPublishers.ofString(content))
                .header("Authorization", "token $token")

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
create(...) This network call does not implement certificate pinning. (no explicitly trusted domains)

sannies/mp4parser

streaming/src/main/java/org/mp4parser/streaming/input/mp4/ClassicMp4ContainerSource.java

        ClassicMp4ContainerSource classicMp4ContainerSource = null;
        try {
            classicMp4ContainerSource = new ClassicMp4ContainerSource(new URI("http://org.mp4parser.s3.amazonaws.com/examples/Cosmos%20Laundromat%20small%20faststart.mp4").toURL().openStream());
        } catch (URISyntaxException e) {
            throw new IOException(e);

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
toURL(...) This network call does not implement certificate pinning. (no explicitly trusted domains)

square/okio

samples/src/jvmMain/java/okio/samples/SocksProxyServer.java


    URL url = new URL("https://publicobject.com/helloworld.txt");
    URLConnection connection = url.openConnection(proxyServer.proxy());
    try (BufferedSource source = Okio.buffer(Okio.source(connection.getInputStream()))) {
      for (String line; (line = source.readUtf8Line()) != null; ) {

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
url This network call does not implement certificate pinning. (no explicitly trusted domains)

zxing/zxing

javase/src/main/java/com/google/zxing/client/j2se/StringsResourceTranslator.java


  private static CharSequence fetch(URI translateURI) throws IOException {
    URLConnection connection = translateURI.toURL().openConnection();
    connection.connect();
    StringBuilder translateResult = new StringBuilder(200);

This network call does not implement certificate pinning. (no explicitly trusted domains)


node
toURL(...) This network call does not implement certificate pinning. (no explicitly trusted domains)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment