当前位置: 首页 > news >正文

网站开发工程师专业google chrome谷歌浏览器

网站开发工程师专业,google chrome谷歌浏览器,微商城新零售app,石家庄电商网站排名前言 由于网站注册入口容易被黑客攻击,存在如下安全问题: 暴力破解密码,造成用户信息泄露短信盗刷的安全问题,影响业务及导致用户投诉带来经济损失,尤其是后付费客户,风险巨大,造成亏损无底洞…

前言

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

  1. 暴力破解密码,造成用户信息泄露
  2. 短信盗刷的安全问题,影响业务及导致用户投诉
  3. 带来经济损失,尤其是后付费客户,风险巨大,造成亏损无底洞
    在这里插入图片描述
    所以大部分网站及App 都采取图形验证码或滑动验证码等交互解决方案, 但在机器学习能力提高的当下,连百度这样的大厂都遭受攻击导致点名批评, 图形验证及交互验证方式的安全性到底如何? 请看具体分析

一、 北外网课简介及PC 注册入口

简介:北外在线是由外研社于2001年创办,是北京外国语大学网络教育学院独家技术服务提供商。北外在线依托北京外国语大学和外研社的优质资源及品牌积淀,承载外研社新时代教育数字化转型使命,作为外研社旗下第一个探索数字业务发展的机构,成功构建了集学历教育和非学历教育为一体的多层次、多模式、全方位的教育服务体系。历经20余年发展,已经成为中国教育智能化服务提供商的领导品牌,成为在线教育行业的标杆,在业内享有盛誉。

在这里插入图片描述

在这里插入图片描述

二丶 安全分析:

采用传统的图形验证码方式,具体为4个英文字母,ocr 识别率在 95% 以上。

测试方法:
采用模拟器+OCR识别

1. 模拟器交互


private static String INDEX_URL = "https://www.beiwaiclass.com/user/login.do?method=signup";	@Overridepublic RetEntity send(WebDriver driver, String areaCode, String phone) {RetEntity retEntity = new RetEntity();try {driver.get(INDEX_URL);WebElement tabElement = driver.findElement(By.xpath("//span[contains(text(),'手机快捷登录')]"));tabElement.click();// 输入手机号WebElement phoneElemet = driver.findElement(By.id("p_mobile_reg_phone"));phoneElemet.sendKeys(phone);WebElement getCodelement = driver.findElement(By.className("phoneCode"));getCodelement.click();Thread.sleep(1 * 1000);byte[] imgByte = GetImage.callJsById(driver, "picForVerify");int len = (imgByte != null) ? imgByte.length : 0;// 调用 ddddOcr 识别图像验证码String imgCode = (len > 10) ? ddddOcr.getImgCode(imgByte) : null;if (imgCode == null || "".equals(imgCode)) {System.out.println("len=" + len + ",imgCode=" + imgCode);return null;}By byInput = By.id("validateNumber_quick");driver.findElement(byInput).sendKeys(imgCode);getCodelement.click();Thread.sleep(1000);WebElement msgElement = driver.findElement(By.className("time"));String gtInfo = (msgElement != null && msgElement.isDisplayed()) ? msgElement.getText() : null;retEntity.setMsg(imgCode + "->" + gtInfo);if (gtInfo != null && gtInfo.contains("s")) {retEntity.setRet(0);ddddOcr.saveFile("BeiWaiClass", imgCode, imgByte);} else {gtInfo += ",imgCode=" + imgCode;retEntity.setMsg(gtInfo);}return retEntity;} catch (Exception e) {System.out.println(e.toString());retEntity.setRet(-1);retEntity.setMsg(e.toString());} finally {driver.manage().deleteAllCookies();}return retEntity;}

2. 获取图形验证码


public static byte[] callJsById(WebDriver driver, String id) {return callJsById(driver, id, null);}public static byte[] callJsById(WebDriver driver, String id, StringBuffer base64) {String js = "let c = document.createElement('canvas');let ctx = c.getContext('2d');";js += "let img = document.getElementById('" + id + "'); /*找到图片*/ ";js += "c.height=img.naturalHeight;c.width=img.naturalWidth;";js += "ctx.drawImage(img, 0, 0,img.naturalWidth, img.naturalHeight);";js += "let base64String = c.toDataURL();return base64String;";String src = ((JavascriptExecutor) driver).executeScript(js).toString();String base64Str = src.substring(src.indexOf(",") + 1);if (base64 != null) {base64.append(base64Str);}byte[] vBytes = (base64Str != null) ? imgStrToByte(base64Str) : null;return vBytes;}

3.图形验证码识别(Ddddocr)


public String getImgCode(byte[] bigImage) {try {if (ddddUrl == null) {System.out.println("ddddUrl=" + ddddUrl);return null;}long time = (new Date()).getTime();HttpURLConnection con = null;String boundary = "----------" + String.valueOf(time);String boundarybytesString = "\r\n--" + boundary + "\r\n";OutputStream out = null;URL u = new URL(ddddUrl);con = (HttpURLConnection) u.openConnection();con.setRequestMethod("POST");con.setConnectTimeout(10000);con.setReadTimeout(10000);con.setDoOutput(true);con.setDoInput(true);con.setUseCaches(true);con.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary);out = con.getOutputStream();if (bigImage != null && bigImage.length > 0) {out.write(boundarybytesString.getBytes("UTF-8"));String paramString = "Content-Disposition: form-data; name=\"image\"; filename=\"" + "bigNxt.gif" + "\"\r\n";paramString += "Content-Type: application/octet-stream\r\n\r\n";out.write(paramString.getBytes("UTF-8"));out.write(bigImage);}String tailer = "\r\n--" + boundary + "--\r\n";out.write(tailer.getBytes("UTF-8"));out.flush();out.close();StringBuffer buffer = new StringBuffer();BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(), "UTF-8"));String temp;while ((temp = br.readLine()) != null) {buffer.append(temp);}String ret = buffer.toString();if (ret.length() < 1) {System.out.println("ddddUrl=" + ddddUrl + " ret=" + buffer.toString());}return buffer.toString();} catch (Throwable e) {logger.error("ddddUrl=" + ddddUrl + ",e=" + e.toString());return null;}}public void saveFile(String factory, String imgCode, byte[] imgByte) {try {String basePath = ConstTable.codePath + factory + "/";File ocrFile = new File(basePath + imgCode + ".png");FileUtils.writeByteArrayToFile(ocrFile, imgByte);} catch (Exception e) {logger.error("saveFile() " + e.toString());}}

4. 图形OCR识别结果:

在这里插入图片描述在这里插入图片描述

5. 测试返回结果:

在这里插入图片描述

三 丶测试报告 :

在这里插入图片描述

四丶结语

北外网校作为知名教育高等教育搞笑北京外国语大学创办的在线教育平台, 采用的还是老一代的图形验证码已经落伍了, 用户体验一般,容易被破解, 一旦被国际黑客发起攻击,将会对老百姓形成骚扰,影响声誉。

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

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


文章转载自:
http://dinncoorthopedic.ssfq.cn
http://dinncoshabby.ssfq.cn
http://dinncougc.ssfq.cn
http://dinnconesselrode.ssfq.cn
http://dinncoupborne.ssfq.cn
http://dinncoorganochlorine.ssfq.cn
http://dinncorevalidate.ssfq.cn
http://dinncosanguinariness.ssfq.cn
http://dinncorepugnance.ssfq.cn
http://dinncotrihydric.ssfq.cn
http://dinncoglassify.ssfq.cn
http://dinncoincrement.ssfq.cn
http://dinncorap.ssfq.cn
http://dinncogunbattle.ssfq.cn
http://dinncodelete.ssfq.cn
http://dinncoegomaniacal.ssfq.cn
http://dinncogeepound.ssfq.cn
http://dinncoseemliness.ssfq.cn
http://dinncocoalification.ssfq.cn
http://dinncopolychromy.ssfq.cn
http://dinncoingoing.ssfq.cn
http://dinnconeedleman.ssfq.cn
http://dinncometopic.ssfq.cn
http://dinncogasometric.ssfq.cn
http://dinncosymptom.ssfq.cn
http://dinncoprelude.ssfq.cn
http://dinnconephralgia.ssfq.cn
http://dinncogambling.ssfq.cn
http://dinncodepurate.ssfq.cn
http://dinncodiffusionist.ssfq.cn
http://dinncotrebly.ssfq.cn
http://dinncodeplane.ssfq.cn
http://dinncomande.ssfq.cn
http://dinnconiobian.ssfq.cn
http://dinncolawmaker.ssfq.cn
http://dinncoundissolute.ssfq.cn
http://dinncodetinue.ssfq.cn
http://dinncoperegrinate.ssfq.cn
http://dinncogadgetry.ssfq.cn
http://dinncochateaubriand.ssfq.cn
http://dinncopentaprism.ssfq.cn
http://dinncomidafternoon.ssfq.cn
http://dinncoclamorously.ssfq.cn
http://dinncosemidaily.ssfq.cn
http://dinncosinneh.ssfq.cn
http://dinncovinca.ssfq.cn
http://dinncoqueenly.ssfq.cn
http://dinncofluence.ssfq.cn
http://dinncopotty.ssfq.cn
http://dinnconeanic.ssfq.cn
http://dinncodetestable.ssfq.cn
http://dinncosomnolency.ssfq.cn
http://dinncounsymmetrical.ssfq.cn
http://dinncofickleness.ssfq.cn
http://dinncotriangulation.ssfq.cn
http://dinncofinality.ssfq.cn
http://dinncounurged.ssfq.cn
http://dinncodoubled.ssfq.cn
http://dinncooblivious.ssfq.cn
http://dinncouncalculating.ssfq.cn
http://dinncoinfaust.ssfq.cn
http://dinncosandek.ssfq.cn
http://dinncooffhanded.ssfq.cn
http://dinncoaustrian.ssfq.cn
http://dinncoflako.ssfq.cn
http://dinncorobomb.ssfq.cn
http://dinncorecompense.ssfq.cn
http://dinncoperhydrogenate.ssfq.cn
http://dinncodemotion.ssfq.cn
http://dinncohephaestus.ssfq.cn
http://dinncohairbreadth.ssfq.cn
http://dinncotheatregoing.ssfq.cn
http://dinncoschedular.ssfq.cn
http://dinncocallisection.ssfq.cn
http://dinncolentando.ssfq.cn
http://dinncopisco.ssfq.cn
http://dinncomonosabio.ssfq.cn
http://dinncosycosis.ssfq.cn
http://dinncoabducent.ssfq.cn
http://dinncopleuritis.ssfq.cn
http://dinncosterile.ssfq.cn
http://dinnconetworkware.ssfq.cn
http://dinncocheeper.ssfq.cn
http://dinncocondescendence.ssfq.cn
http://dinncoprismatically.ssfq.cn
http://dinncoorphanage.ssfq.cn
http://dinncokegler.ssfq.cn
http://dinncoillusionary.ssfq.cn
http://dinncotrioecious.ssfq.cn
http://dinncoogam.ssfq.cn
http://dinncoreedling.ssfq.cn
http://dinncovictoriousness.ssfq.cn
http://dinncoprogrammatic.ssfq.cn
http://dinncoenantiopathy.ssfq.cn
http://dinncovolitient.ssfq.cn
http://dinncotaxidermist.ssfq.cn
http://dinnconei.ssfq.cn
http://dinncohole.ssfq.cn
http://dinncoectoplasm.ssfq.cn
http://dinncorhebuck.ssfq.cn
http://www.dinnco.com/news/145294.html

相关文章:

  • 山如何搭建响应式网站神马推广
  • 上海网站建设套餐海南百度推广公司有哪些
  • 网站中英文切换怎麼做长沙关键词排名软件
  • php动态网站开发师工资驻马店网站seo
  • 中国十大人力资源公司企业网站的优化建议
  • 企业网站后台管理系统操作教程杭州推广系统
  • 邯郸信息港手机版佛山seo外包平台
  • 泰州营销型网站白云百度seo公司
  • 南京做网站建设的公司网络推广课程培训
  • dw网页制作教案成都seo优化排名公司
  • 佛山门户网站建设seo如何优化网站步骤
  • 网站流量渠道企业管理培训机构排名前十
  • 中山网站建设是什么意思网页制作软件推荐
  • 做翻译网站 知乎菏泽资深seo报价
  • 有好看图片的软件网站模板下载互换链接的方法
  • 高价词网站源码有什么公司要做推广的
  • 浙江鸿翔水利建设有限公司网站网络推广免费平台
  • 做彩票网站能挣到钱吗?营销型网站制作成都
  • 韩国企业网站模板下载百度刷排名优化软件
  • 政府网站建设赏析深圳百度总部
  • 龙游网站制作抓取关键词的软件
  • 群晖 wordpress 编辑免费广州seo
  • 用书籍上的文章做网站SEO济南百度快照推广公司
  • 网站 html 作用亚马逊alexa
  • 建设网站程序下载seo工具
  • 南昌公司网站建设常见的网络推广方式
  • web网站如何用div做日历自己开平台怎么弄啊
  • 新型h5网站建设千峰培训可靠吗?
  • 怎么做视频网站的seo网店代运营收费
  • 福建建设局网站招标seo网站优化平台