• Resolved justmattb

    (@mwbarker)


    Trying out a new plugin, called Argo Links:
    https://argoproject.org/argo-links.php

    Included with it is a bookmarklet that allows you to capture the URL from the website and add it to a list of links in your WordPress site. BulletProof Security is blocking the requests, resulting in a 403 on the pop-up. This is what the bookmarklet looks like:

    javascript:var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='https://www.mysite.com/wp-content/plugins/argoproject-argo-links-ec58e2a/argo-this.php',l=d.location,e=encodeURIComponent,u=f+'?post_type=argolinks&u='+e(l.href)+'&t='+e(d.title)+'&s='+e(s)+'&v=4';a=function(){if(!w.open(u,'t','toolbar=0,resizable=1,scrollbars=1,status=1,width=720,height=570'))l.href=u;};if (/Firefox/.test(navigator.userAgent)) setTimeout(a, 0); else a();void(0)

    This is what the BPS error log shows:

    >>>>>>>>>>> 403 GET or Other Request Error Logged - March 20, 2013 - 3:36 am <<<<<<<<<<<
    REMOTE_ADDR: editedout
    Host Name: editedout
    HTTP_CLIENT_IP:
    HTTP_FORWARDED:
    HTTP_X_FORWARDED_FOR: editedout
    HTTP_X_CLUSTER_CLIENT_IP:
    REQUEST_METHOD: GET
    HTTP_REFERER: https://www.fromaway.com/features/how-to-start-a-food-blog
    REQUEST_URI: /wp-content/plugins/argoproject-argo-links-ec58e2a/argo-this.php?post_type=argolinks&u=http%3A%2F%2Fwww.fromaway.com%2Ffeatures%2Fhow-to-start-a-food-blog&t=How%20to%20Start%20a%20Food%20Blog&s=&v=4
    QUERY_STRING:
    HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22

    I have tried to update the .htaccess file with this line, but it does not help:

    # Argo Links
    RewriteCond %{REQUEST_URI} ^/wp-content/plugins/argoproject-argo-links-ec58e2a/ [NC]
    RewriteRule . - [S=13]

    Any other way around this?

    https://www.ads-software.com/extend/plugins/bulletproof-security/

Viewing 15 replies - 16 through 30 (of 47 total)
  • Plugin Author AITpro

    (@aitpro)

    This plugin also uses admin-ajax.php so make sure that you have whitelisted admin-ajax.php in your wp-admin .htaccess file.

    This plugin also uses press-this.php. press-this.php should already be whitelisted in your wp-admin .htaccess file.

    # Allow wp-admin files that are called by plugins
    # Fix for WP Press This
    RewriteCond %{REQUEST_URI} (press-this\.php|admin-ajax\.php) [NC]
    RewriteRule . - [S=1]

    Thread Starter justmattb

    (@mwbarker)

    Still not working; this is what it looks like:

    root .htaccess:

    # TimThumb Forbid RFI By Host Name But Allow Internal Requests
    #RewriteCond %{QUERY_STRING} ^.*(http|https|ftp)(%3A|:)(%2F|/)(%2F|/)(w){0,3}.?(blogger|picasa|blogspot|tsunami|petapolitik|photobucket|imgur|imageshack|wordpress\.com|img\.youtube|tinypic\.com|upload\.wikimedia|kkc|start-thegame).*$ [NC,OR]
    #RewriteCond %{THE_REQUEST} ^.*(http|https|ftp)(%3A|:)(%2F|/)(%2F|/)(w){0,3}.?(blogger|picasa|blogspot|tsunami|petapolitik|photobucket|imgur|imageshack|wordpress\.com|img\.youtube|tinypic\.com|upload\.wikimedia|kkc|start-thegame).*$ [NC]
    #RewriteRule .* index.php [F,L]
    RewriteCond %{REQUEST_URI} (argo-this\.php|timthumb\.php|phpthumb\.php|thumb\.php|thumbs\.php) [NC]
    RewriteCond %{HTTP_REFERER} ^.*mysite.com.*
    RewriteRule . - [S=1]

    wp-admin .htaccess:

    # Allow wp-admin files that are called by plugins
    # Fix for WP Press This
    RewriteCond %{REQUEST_URI} (admin-ajax\.php|press-this\.php) [NC]
    RewriteRule . - [S=1]

    Thread Starter justmattb

    (@mwbarker)

    Really, really, REALLY appreciate you looking at this. I have tried removing huge sections of the .htaccess file trying to identify what is causing this and am still scratching my head. Will keep plugging away at it.

    Plugin Author AITpro

    (@aitpro)

    Ok that leaves you with isolating this RFI security filters.
    Comment them out 1 by 1 and test. Once you isolate the filter or filters then it may be possible to whitelist something without leaving your website wide open to RFI hacking attempts, but I need to know which filter is blocking this plugin before I can see if creating a whitelisting rule that will still leave your site protected, but also allow this plugin to do what it is doing.

    RewriteCond %{THE_REQUEST} \?\ HTTP/ [NC,OR]
    RewriteCond %{THE_REQUEST} \/\*\ HTTP/ [NC,OR]
    RewriteCond %{QUERY_STRING} http\: [NC,OR]
    RewriteCond %{QUERY_STRING} https\: [NC,OR]
    RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=https:// [OR]
    RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=(\.\.//?)+ [OR]
    RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=/([a-z0-9_.]//?)+ [NC,OR]

    Plugin Author AITpro

    (@aitpro)

    I just noticed something. Is this the true/actual plugin folder name?

    # Argo Links
    RewriteCond %{REQUEST_URI} ^/wp-content/plugins/argoproject-argo-links-ec58e2a/ [NC]
    RewriteRule . - [S=13]
    Plugin Author AITpro

    (@aitpro)

    Are you sure this plugin actually works with WP 3.5?

    * NOTE: The plugin has been verified to work in WordPress 3.3.1. It is no longer under active development.

    Thread Starter justmattb

    (@mwbarker)

    Yeah, that was because I just uploaded the zip file that I downloaded directly from Git. I went ahead and renamed it to argo-links and reactivated it to clean it up. It appears to work in the latest version of WordPress. I am able to do everything with it, with the exception of using the bookmarklet with BPS. I have even gone so far as to remove most of the code from the .htaccess file:

    # BPSQSE BPS QUERY STRING EXPLOITS
    # The libwww-perl User Agent is forbidden - Many bad bots use libwww-perl modules, but some good bots use it too.
    # Good sites such as W3C use it for their W3C-LinkChecker.
    # Add or remove user agents temporarily or permanently from the first User Agent filter below.
    # If you want a list of bad bots / User Agents to block then scroll to the end of this file.
    
    RewriteCond %{QUERY_STRING} (sp_executesql) [NC]
    RewriteRule ^(.*)$ - [F,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    But still get the same result.

    Plugin Author AITpro

    (@aitpro)

    Have you put BPS in Default Mode to make absolutely sure BPS is causing this issue?

    1. Make a backup of your .htaccess files using BulletProof Security built-in Backup.
    2. Activate Default Mode on the Security Modes page.
    3. Use the Delete wp-admin .htaccess feature on the Security Modes page.
    4. Test your plugin or theme.

    After testing is completed
    5. Restore your .htaccess files using BulletProof Security built-in Restore.

    Thread Starter justmattb

    (@mwbarker)

    Yes, and when I do, the bookmarklet works.

    Plugin Author AITpro

    (@aitpro)

    Let me know what happens after you put BPS into Default Mode.

    Plugin Author AITpro

    (@aitpro)

    Is the plugin folder name correct that you posted?

    argoproject-argo-links-ec58e2a

    Thread Starter justmattb

    (@mwbarker)

    Yes it was, but to make sure that wasn’t causing any issues, I simplified it down to just argo-links and reactivated the plugin (and updated that portion of the .htaccess file). The name was just how it came down from Github.

    Plugin Author AITpro

    (@aitpro)

    Wow ok so you have eliminated all of the root .htaccess code and the error still occurs? Something does not add up there???

    Thread Starter justmattb

    (@mwbarker)

    This was just the piece that was leftover from the whole BPSQSE section; I did leave everything else intact. Just wanted to make sure I was clear that what you see below is not ALL that was in the .htaccess file.

    # BPSQSE BPS QUERY STRING EXPLOITS
    # The libwww-perl User Agent is forbidden - Many bad bots use libwww-perl modules, but some good bots use it too.
    # Good sites such as W3C use it for their W3C-LinkChecker.
    # Add or remove user agents temporarily or permanently from the first User Agent filter below.
    # If you want a list of bad bots / User Agents to block then scroll to the end of this file.
    
    RewriteCond %{QUERY_STRING} (sp_executesql) [NC]
    RewriteRule ^(.*)$ - [F,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    Plugin Author AITpro

    (@aitpro)

    Oh wait you were only showing the Query string section.
    This means that the problem is with some other .htaccess code in the root .htaccess file then.

Viewing 15 replies - 16 through 30 (of 47 total)
  • The topic ‘Argo Links 403 Error’ is closed to new replies.