Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1448980

    The file enfold/js/waypoints/waypoints.min.js has been flagged by our security software as outdated and risky. We have updated the theme to the latest version, but the issue persists. Please provide advice or instructions on how to obtain the latest version of enfold/js/waypoints/waypoints.min.js.

    #1449010

    Hey morcept,

    The most recent file is what is included in the theme. What exactly is being flagged and why?

    Best regards,
    Rikard

    #1449318

    Hi Rikard,

    Thank you for your reply!
    The problematic section is on page 50 of this document. Please refer to it!

    https://drive.google.com/file/d/1iJY3IS3p1vK_y3ur6NoMxQFge4G4L7N7/view

    Thank you very much!
    Best regards,

    Morcept

    #1449386

    Hi,

    Thanks for that. Most of the document is in chinese, so it’s not easy to understand for us. Could you maybe give us the details on what exactly is being flagged and why?

    Best regards,
    Rikard

    #1451911

    Hi Rikard,

    I apologize for the delay in replying to your message. I have translated the Chinese sections into English for your reference.

    Severity: Medium
    CVSS Rating: 5.3
    CVE::CVE-2007-3205
    URL:: https://ai.ntu.edu.tw/wp-content/themes/enfold/js/waypoints/waypoints.min.js
    Entity: PHP 7.4.33 (Component)
    Risk: Using outdated or vulnerable versions exposes your application to potential security vulnerabilities
    Cause: A vulnerable component was used in the test application.
    Fix: Upgrade components to latest stable version
    Testing requests and responses:
    GET /wp-content/themes/enfold/js/waypoints/waypoints.min.js?ver=5.6.8 HTTP/1.1
    Host: ai.ntu.edu.tw
    Connection: keep-alive
    sec-ch-ua: “Not)A;Brand”;v=”24″, “Chromium”;v=”116″
    sec-ch-ua-mobile: ?0
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
    sec-ch-ua-platform: “Windows”
    Accept: */*
    Accept-Language: en-US
    Sec-Fetch-Site: same-origin
    Sec-Fetch-Mode: no-cors
    Sec-Fetch-Dest: script
    Referer: https://ai.ntu.edu.tw/
    Content-Length: 0
    HTTP/1.1 200 OK
    Date: Thu, 06 Jun 2024 01:35:51 GMT
    Server: Apache/2.4.59 (Unix) OpenSSL/3.3.0 PHP/7.4.33
    Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
    Last-Modified: Sat, 25 Feb 2023 10:52:11 GMT
    ETag: “2307-5f58409b68cc0”
    Accept-Ranges: bytes
    Content-Length: 8967
    Keep-Alive: timeout=5, max=100
    Connection: Keep-Alive
    Content-Type: application/javascript
    /*!
    Waypoints – 4.0.1
    Copyright © 2011-2016 Caleb Troughton
    Licensed under the MIT license.
    https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
    */
    !function(){“use strict”;var t=0,e={};function i(o){if(!o)throw new Error(“No options passed to Waypoint
    constructor”);if(!o.element)throw new Error(“No element option passed to Waypoint constructor”);if(!o.handler)throw new
    Error(“No handler option passed to Waypoint constructor”);this.key=”waypoint-
    “+t,this.options=i.Adapter.extend({},i.defaults,o),this.element=this.options.element,this.adapter=new
    i.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?”horizontal”:”vertical”,this.enabled=this
    .options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.cont
    ext=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&
    (this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),e[this.key]=this,t+=
    1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t)
    {this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function()
    {this.context.remove(this),this.group.remove(this),delete e[this.key]},i.prototype.disable=function(){return
    this.enabled=!1,this},i.prototype.enable=function(){return
    this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return
    this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var i=
    [];for(var o in e)i.push(e[o]);for(var n=0,r=i.length;n<r;n++)i[n][t]()},i.destroyAll=function()
    {i.invokeAll(“destroy”)},i.disableAll=function(){i.invokeAll(“disable”)},i.enableAll=function(){for(var t in
    i.Context.refreshAll(),e)e[t].enabled=!0;return this},i.refreshAll=function()
    {i.Context.refreshAll()},i.viewportHeight=function(){return
    window.innerHeight||document.documentElement.clientHeight},i.viewportWidth=function(){return
    document.documentElement.clientWidth},i.adapters=[],i.defaults=

    {context:window,continuous:!0,enabled:!0,group:”default”,horizontal:!1,offset:0},i.offsetAliases={“bottom-in-
    view”:function(){return this.context.innerHeight()-this.adapter.outerHeight()},”right-in-view”:function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=i}(),function(){“use strict”;function t(t)
    {window.setTimeout(t,1e3/60)}var e=0,i={},o=window.Waypoint,n=window.onload;function r(t)
    {this.element=t,this.Adapter=o.Adapter,this.adapter=new this.Adapter(t),this.key=”waypoint-context-
    “+e,this.didScroll=!1,this.didResize=!1,this.oldScroll=
    {x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:
    {}},t.waypointContextKey=this.key,i[t.waypointContextKey]=this,e+=1,o.windowContext||
    (o.windowContext=!0,o.windowContext=new
    r(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}r.prototype.add=function(t){var
    e=t.options.horizontal?”horizontal”:”vertical”;this.waypoints[e][t.key]=t,this.refresh()},r.prototype.checkEmpty=function()
    {var
    t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),o=this.elemen
    t==this.element.window;t&&e&&!o&&(this.adapter.off(“.waypoints”),delete
    i[this.key])},r.prototype.createThrottledResizeHandler=function(){var t=this;function e()
    {t.handleResize(),t.didResize=!1}this.adapter.on(“resize.waypoints”,(function(){t.didResize||
    (t.didResize=!0,o.requestAnimationFrame(e))}))},r.prototype.createThrottledScrollHandler=function(){var t=this;function e()
    {t.handleScroll(),t.didScroll=!1}this.adapter.on(“scroll.waypoints”,(function(){t.didScroll&&!o.isTouch||
    (t.didScroll=!0,o.requestAnimationFrame(e))}))},r.prototype.handleResize=function()
    {o.Context.refreshAll()},r.prototype.handleScroll=function(){var t={},e={horizontal:
    {newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:”right”,backward:”left”},vertical:
    {newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forwar


    Thank you for your help!

    Best regards,
    Morcept

    #1451930

    Hi,

    Thank you for the info.

    The theme includes the latest version of the script (4.0.1), so this might be a false positive report, as it didn’t identify the specific line of code with the vulnerability

    // https://www.npmjs.com/package/waypoints

    Best regards,
    Ismael

    #1451962

    Hi Ismael

    Thank you for your reply.
    If I disable the JavaScript file enfold/js/waypoints/waypoints.min.js to pass security software validation, will it cause any impact or errors on the website?

    Best regards,
    Morcept

    #1452091

    Hi,

    It will affect the smooth scroll script and any other scroll-related scripts that rely on the waypoint script. Disabling the script might cause errors that conflict with other scripts, so it’s not recommended.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.