Skip to content

Potential reflected XSS in the WebSub intent verification #8

Description

@randomstuff

I believe the WebSub intent verification might be vulnerable to XSS because it reflects the hub.challenge parameter with a HTML content type:

<?php

if (get_str("hub_mode") == "subscribe"){
  # ...
  $challenge = get_str("hub_challenge");
	$verify = get_str("hub_verify_token");
  # ...
  if ($verify != $subscription['verify_token']){
		error_403();
	}
  # ...
  echo $challenge;
	exit();
}

Reference: https://www.w3.org/TR/websub/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions