Ticket #383 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

Sanitize LoadRecentComments() and LoadRecentlyCommented()

Reported by: DotMG Owned by: DotMG
Priority: highest Milestone: 1.1.6.3
Component: core Version: 1.1.6.2
Severity: major Keywords: security, comments
Cc:

Description (last modified by DarTar) (diff)

The (currently unused) $limit parameter in LoadRecentComments() and LoadRecentlyCommented() is not sanitized.

Note:

For unmodified installations, there is NO SECURITY RISK as all original releases of WikkaWiki (including versions prior to 1.1.6.2) do not make use of this parameter.

Where does this apply:

If the owner of a WikkaWiki-powered website modifies the installation, and adds new functionality making use of this parameter, then the value passed to this parameter is not sanitized and could raise a potential vulnerability (SQL injection).

Solution:

To sanitize it, use

$limit = intval($limit) 

Fixed in [241]

Change History

Changed 4 years ago by DotMG

  • status changed from new to closed
  • resolution set to fixed
  • description modified (diff)

Changed 4 years ago by JavaWoman

  • milestone changed from 1.1.7 to 1.1.6.3

changing milestone to 1.1.6.3 security release

Changed 4 years ago by JavaWoman

  • status changed from closed to reopened
  • resolution fixed deleted

reopening for 1.1.6.3 (note it's fixed in trunk!)

Changed 3 years ago by JavaWoman

  • description modified (diff)

1.1.6.3: [405] applies [227]:[241] diff from trunk (#383) and adds and updates a few docblocks; some manual conflict resolution

Changed 3 years ago by DarTar

  • status changed from reopened to closed
  • resolution set to fixed
  • description modified (diff)

Since the necessary code changes have been ported, I'm closing this ticket.

Changed 3 years ago by DotMG

  • description modified (diff)

Changed 3 years ago by DarTar

  • description modified (diff)

Changed 3 years ago by DarTar

  • description modified (diff)

Changed 3 years ago by DarTar

  • description modified (diff)

Changed 3 years ago by DarTar

  • version set to 1.1.6.2
  • description modified (diff)
Note: See TracTickets for help on using tickets.