Issues (2473)

Branch: master

Security Analysis    no vulnerabilities found

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

mod/polls/languages/en.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
	$english = array(
4
	
5
		/**
6
		 * Menu items and titles
7
		 */
8
			'poll' => "Poll",
9
            'polls:add' => "New Poll",
10
			'polls' => "Polls",
11
			'polls:votes' => "votes",
12
			'polls:user' => "%s's poll",
13
			'polls:group_polls' => "Group polls",
14
			'polls:group_polls:listing:title' => "%s's polls",
15
			'polls:user:friends' => "%s's friends' poll",
16
			'polls:your' => "Your polls",
17
			'polls:not_me' => "%s's polls",
18
			'polls:posttitle' => "%s's polls: %s",
19
			'polls:friends' => "Friends' polls",
20
			'polls:not_me_friends' => "%s's friend's polls",
21
			'polls:yourfriends' => "Your friends' latest polls",
22
			'polls:everyone' => "All site polls",
23
			'polls:read' => "Read poll",
24
			'polls:addpost' => "Create a poll",
25
			'polls:editpost' => "Edit a poll: %s",
26
			'polls:edit' => "Edit a poll",
27
			'polls:text' => "Poll text",
28
			'polls:strapline' => "%s",			
29
			'item:object:poll' => 'Polls',
30
			'item:object:poll_choice' => "Poll choices",
31
			'polls:question' => "Poll question",
32
			'polls:responses' => "Response choices",
33
			'polls:results' => "[+] Show the results",
34
			'polls:show_results' => "Show results",
35
			'polls:show_poll' => "Show poll",
36
			'polls:add_choice' => "Add response choice",
37
			'polls:delete_choice' => "Delete this choice",
38
			'polls:settings:group:title' => "Group polls",
39
			'polls:settings:group_polls_default' => "yes, on by default",
40
			'polls:settings:group_polls_not_default' => "yes, off by default",
41
			'polls:settings:no' => "no",
42
			'polls:settings:group_profile_display:title' => "If group polls are activated, where should polls content be displayed in group profiles?",
43
			'polls:settings:group_profile_display_option:left' => "left",
44
			'polls:settings:group_profile_display_option:right' => "right",
45
			'polls:settings:group_profile_display_option:none' => "none",
46
			'polls:settings:group_access:title' => "If group polls are activated, who gets to create polls?",
47
			'polls:settings:group_access:admins' => "group owners and admins only",
48
			'polls:settings:group_access:members' => "any group member",
49
			'polls:none' => "No polls found.",
50
			'polls:permission_error' => "You do not have permission to edit this poll.",
51
			'polls:vote' => "Vote",
52
			'polls:login' => "Please login if you would like to vote in this poll.",
53
			'group:polls:empty' => "No polls",
54
			'polls:settings:site_access:title' => "Who can create site-wide polls?",
55
			'polls:settings:site_access:admins' => "Admins only",
56
			'polls:settings:site_access:all' => "Any logged-in user",
57
			'polls:can_not_create' => "You do not have permission to create polls.",
58
		/**
59
	     * poll widget
60
	     **/
61
			'polls:latest_widget_title' => "Latest community polls",
62
			'polls:latest_widget_description' => "Displays the most recent polls.",
63
			'polls:my_widget_title' => "My polls",
64
			'polls:my_widget_description' => "This widget will display your polls.",
65
			'polls:widget:label:displaynum' => "How many polls you want to display?",
66
			'polls:individual' => "Latest poll",
67
			'poll_individual_group:widget:description' => "Display the latest poll for this group.",
68
			'poll_individual:widget:description' => "Display your latest poll",
69
			'polls:widget:no_polls' => "There are no polls for %s yet.",
70
			'polls:widget:nonefound' => "No polls found.",
71
			'polls:widget:think' => "Let %s know what you think!",
72
			'polls:enable_polls' => "Enable polls",
73
			'polls:group_identifier' => "(in %s)",
74
			'polls:noun_response' => "response",
75
			'polls:noun_responses' => "responses",
76
	        'polls:settings:yes' => "yes",
77
			'polls:settings:no' => "no",
78
			
79
         /**
80
	     * poll river
81
	     **/
82
	        'polls:settings:create_in_river:title' => "Show poll creation in activity river",
83
			'polls:settings:vote_in_river:title' => "Show poll voting in activity river",
84
			'river:create:object:poll' => '%s created a poll %s',
85
			'river:vote:object:poll' => '%s voted on the poll %s',
86
			'river:comment:object:poll' => '%s commented on the poll %s',
87
		/**
88
		 * Status messages
89
		 */
90
	
91
			'polls:added' => "Your poll was created.",
92
			'polls:edited' => "Your poll was saved.",
93
			'polls:responded' => "Thank you for responding, your vote was recorded.",
94
			'polls:deleted' => "Your poll was successfully deleted.",
95
			'polls:totalvotes' => "Total number of votes: ",
96
			'polls:voted' => "Your vote has been cast for this poll. Thank you for voting on this poll.",
97
			
98
	
99
		/**
100
		 * Error messages
101
		 */
102
	
103
			'polls:save:failure' => "Your poll could not be saved. Please try again.",
104
			'polls:blank' => "Sorry: you need to fill in both the question and responses before you can make a poll.",
105
			'polls:novote' => "Sorry: you need to choose an option to vote in this poll.",
106
			'polls:notfound' => "Sorry: we could not find the specified poll.",
107
			'polls:nonefound' => "No polls were found from %s",
108
			'polls:notdeleted' => "Sorry: we could not delete this poll."
109
	);
110
					
111
	add_translation("en",$english);
112
113
?>
0 ignored issues
show
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...